代码优化
This commit is contained in:
@@ -50,13 +50,13 @@ onBeforeMount(() => {
|
||||
})
|
||||
|
||||
const init = async () => {
|
||||
// await Promise.all([
|
||||
// getAreaList(),
|
||||
// dictDataCache()
|
||||
// ]).then(res => {
|
||||
// dictData.state.area = res[0].data
|
||||
// dictData.state.basic = res[1].data
|
||||
// })
|
||||
await Promise.all([
|
||||
getAreaList(),
|
||||
dictDataCache()
|
||||
]).then(res => {
|
||||
dictData.state.area = res[0].data
|
||||
dictData.state.basic = res[1].data
|
||||
})
|
||||
/**
|
||||
* 后台初始化请求,获取站点配置,动态路由等信息
|
||||
*/
|
||||
|
||||
@@ -74,6 +74,7 @@ onMounted(() => {
|
||||
if (typeof navTabs.state.activeRoute?.meta.keepalive == 'string') {
|
||||
addKeepAliveComponentName(navTabs.state.activeRoute?.meta.keepalive)
|
||||
}
|
||||
console.log(state.keepAliveComponentNameList)
|
||||
})
|
||||
|
||||
watch(
|
||||
|
||||
Reference in New Issue
Block a user