From af2bf4c96a76a8ed47d9a9e570f2340c3446164c Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Fri, 23 Sep 2022 17:02:07 +0800 Subject: [PATCH] =?UTF-8?q?CN-714=20feat:=20=E5=B0=86linkInfo=E5=9C=A8?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E6=97=B6=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/user.js | 5 +++++ src/utils/constants.js | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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']