Commit 908c0c14 authored by 邓晓峰's avatar 邓晓峰

chore: 升级kit_global_config

parent 5d772c34
Pipeline #40661 passed with stages
in 6 minutes 21 seconds
......@@ -10,6 +10,8 @@ window.createStoreage = new Storeage(namespace);
export const initGlobalConfig = (loader, store, render) => {
// eslint-disable-next-line no-debugger
// eslint-disable-next-line no-undef
createStoreage.remove(`__PANDA_STORE__${location.hostname}`);
let config = createStoreage.get('globalConfig') || {};
store.dispatch(actionCreators.updateComplexConfig({}));
if (!getToken() || config.token == null) {
......@@ -60,8 +62,8 @@ export const initGlobalConfig = (loader, store, render) => {
})
.then(res => {
if (res) {
store.dispatch(actionCreators.getConfig(Object.assign({})));
createStoreage.remove(`__PANDA_STORE__${location.hostname}`);
const data = res;
if (!data.client) {
data.client = params.getParams('client') || 'city';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment