App.vue 349 B

123456789101112131415161718
  1. <template>
  2. <hc-app-config>
  3. <router-view />
  4. </hc-app-config>
  5. </template>
  6. <script setup>
  7. import { nextTick } from 'vue'
  8. import { detectionBrowser, getAppVersion } from 'hc-vue3-ui'
  9. nextTick(() => {
  10. detectionBrowser()
  11. //生产环境下,检测更新
  12. if (import.meta.env.PROD) {
  13. getAppVersion()
  14. }
  15. })
  16. </script>