Explorar el Código

qiankun配置

quwangxin hace 2 años
padre
commit
091c4d04fa
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      src/config/setting.js

+ 3 - 1
src/config/setting.js

@@ -54,7 +54,9 @@ export const TOKEN_STORE_NAME = window.__POWERED_BY_QIANKUN__
   : `${SYSTEM_NAME}-access_token`;
 
 // 主题配置存储的名称
-export const THEME_STORE_NAME = 'theme';
+export const THEME_STORE_NAME = window.__POWERED_BY_QIANKUN__
+  ? 'theme'
+  : `${SYSTEM_NAME}-theme`;
 
 // i18n 缓存的名称
 export const I18N_CACHE_NAME = 'i18n-lang';