CN-710 feat: 用户登录时,存默认下钻table配置在localstorage中
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { post } from '@/utils/http'
|
||||
import { get, post } from '@/utils/http'
|
||||
import router from '@/router'
|
||||
import { sortByOrderNum, getWelcomeMenu } from '@/permission'
|
||||
import { ElMessage } from 'element-plus' // dependent on utc plugin
|
||||
@@ -77,6 +77,11 @@ const user = {
|
||||
}
|
||||
}
|
||||
})
|
||||
get(api.config, { ckey: 'drill_down_table_config' }).then(res => {
|
||||
if (res.code === 200 && res.page.list && res.page.list.length > 0) {
|
||||
localStorage.setItem(storageKey.drillDownTableConfig, res.page.list[0].cvalue)
|
||||
}
|
||||
})
|
||||
},
|
||||
logoutSuccess (store, res) {
|
||||
localStorage.removeItem(storageKey.username)
|
||||
|
||||
Reference in New Issue
Block a user