diff --git a/src/store/modules/user.js b/src/store/modules/user.js index a3f680a6..f6d05179 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -82,6 +82,11 @@ const user = { 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) { localStorage.removeItem(storageKey.username) diff --git a/src/utils/constants.js b/src/utils/constants.js index b31e3a49..9dfa1d4e 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -30,7 +30,8 @@ export const storageKey = { echartLegendFontSize: 'echartLegendFontSize', echartLabelFontSize: 'echartLabelFontSize', 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']