Explorar el Código

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

wangcong hace 2 meses
padre
commit
0a53b429a9
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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') {