|
@@ -10,11 +10,12 @@ import { useAppStore } from '~src/store'
|
|
|
import { detectionBrowser, getAppVersion, useOsTheme } from 'hc-vue3-ui'
|
|
|
import { getObjValue, setElementMainColor } from 'js-fast-way'
|
|
|
import website from '~src/config'
|
|
|
+import { useRoute } from 'vue-router'
|
|
|
|
|
|
//初始变量
|
|
|
const appStore = useAppStore()
|
|
|
const UserTheme = ref(appStore.getTheme)
|
|
|
-
|
|
|
+const useRoutes = useRoute()
|
|
|
//监听
|
|
|
watch(() => [appStore.getTheme, appStore.getThemeVal, appStore.getColor], ([Theme, ThemeVal, ColorVal]) => {
|
|
|
UserTheme.value = Theme
|
|
@@ -55,7 +56,7 @@ nextTick(() => {
|
|
|
const setUserTheme = (theme, appColor) => {
|
|
|
const projectInfo = appStore.projectInfo
|
|
|
const id = '1891312830718746625'
|
|
|
- let isYunNan = projectInfo?.id === id
|
|
|
+ let isYunNan = useRoutes?.path !== '/home/config' && projectInfo?.id === id
|
|
|
if (isYunNan) {
|
|
|
setElementMainColor('#409eff')
|
|
|
let colorName = 'blue'
|