CN-714 feat: 将linkInfo在登录时缓存
This commit is contained in:
@@ -82,6 +82,11 @@ const user = {
|
|||||||
localStorage.setItem(storageKey.drillDownTableConfig, res.page.list[0].cvalue)
|
localStorage.setItem(storageKey.drillDownTableConfig, res.page.list[0].cvalue)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
get(api.config, { ckey: 'link_info' }).then(res => {
|
||||||
|
if (res.code === 200 && res.page.list && res.page.list.length > 0) {
|
||||||
|
localStorage.setItem(storageKey.linkInfo, res.page.list[0].cvalue)
|
||||||
|
}
|
||||||
|
})
|
||||||
},
|
},
|
||||||
logoutSuccess (store, res) {
|
logoutSuccess (store, res) {
|
||||||
localStorage.removeItem(storageKey.username)
|
localStorage.removeItem(storageKey.username)
|
||||||
|
|||||||
@@ -30,7 +30,8 @@ export const storageKey = {
|
|||||||
echartLegendFontSize: 'echartLegendFontSize',
|
echartLegendFontSize: 'echartLegendFontSize',
|
||||||
echartLabelFontSize: 'echartLabelFontSize',
|
echartLabelFontSize: 'echartLabelFontSize',
|
||||||
tokenExpireCurrentPath: 'token-expire-current-path',
|
tokenExpireCurrentPath: 'token-expire-current-path',
|
||||||
drillDownTableConfig: 'cn-drill-down-table-config'
|
drillDownTableConfig: 'cn-drill-down-table-config',
|
||||||
|
linkInfo: 'cn-link-info'
|
||||||
}
|
}
|
||||||
export const largeCountryList = ['CN', 'US', 'RU', 'AU', 'CA', 'KZ', 'IN', 'BR']
|
export const largeCountryList = ['CN', 'US', 'RU', 'AU', 'CA', 'KZ', 'IN', 'BR']
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user