|
@@ -7,7 +7,7 @@
|
|
|
<script setup>
|
|
|
import { nextTick, ref, watch } from 'vue'
|
|
|
import { useAppStore } from '~src/store'
|
|
|
-import { useOsTheme } from 'hc-vue3-ui'
|
|
|
+import { detectionBrowser, useOsTheme } from 'hc-vue3-ui'
|
|
|
import { getObjValue, setElementMainColor } from 'js-fast-way'
|
|
|
import { getStoreValue, setStoreValue } from '~uti/storage'
|
|
|
import { getVersionJson } from '~api/other'
|
|
@@ -30,6 +30,7 @@ nextTick(() => {
|
|
|
setUserTheme(appStore.getThemeVal, appStore.getColor)
|
|
|
//生产环境下,检测更新
|
|
|
if (import.meta.env.PROD && appStore.isSource !== 'app') {
|
|
|
+ detectionBrowser()
|
|
|
getVersionJsonApi()
|
|
|
//检测新版本
|
|
|
setInterval(() => {
|