|
@@ -11,11 +11,11 @@ import { detectionBrowser, getAppVersion, useOsTheme } from 'hc-vue3-ui'
|
|
|
import { getObjValue, setElementMainColor } from 'js-fast-way'
|
|
|
import { addDocumentsJs } from '~uti/tools'
|
|
|
import split from 'split.js'
|
|
|
-
|
|
|
+import { useRoute } from 'vue-router'
|
|
|
//初始变量
|
|
|
const appStore = useAppStore()
|
|
|
const UserTheme = ref(appStore.getTheme)
|
|
|
-
|
|
|
+const useRoutes = useRoute()
|
|
|
//监听
|
|
|
watch(() => [
|
|
|
appStore.getTheme,
|
|
@@ -42,7 +42,7 @@ const setUserTheme = (theme, appColor) => {
|
|
|
|
|
|
const projectInfo = appStore.projectInfo
|
|
|
const id = '1891312830718746625'
|
|
|
- let isYunNan = projectInfo?.id === id
|
|
|
+ let isYunNan = useRoutes?.path !== '/config/theme' && projectInfo?.id === id
|
|
|
if (isYunNan) {
|
|
|
setElementMainColor('#409eff')
|
|
|
let colorName = 'blue'
|