Преглед изворни кода

perf(views): 加载环境区域相关页面时不注册 echarts 主题

wangcong пре 2 месеци
родитељ
комит
0a53b429a9
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/App.vue

+ 3 - 1
src/App.vue

@@ -16,7 +16,9 @@ const { getUser } = useUser();
 onBeforeMount(() => {
   // getEnterprise();
   setTimeout(() => {
-    registerTheme();
+    if (!location.href.includes('env-area')) {
+      registerTheme();
+    }
     // changeTheme('le-dark');
     let theme =  localStorage.getItem('le-theme');
     if(theme === 'light') {