补充
This commit is contained in:
@@ -18,12 +18,12 @@ const currentComponent = shallowRef(
|
|||||||
);
|
);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
//获取当前系统设置的首页路径 111为configID
|
//获取当前系统设置的首页路径
|
||||||
getConfigKey('sys.homePage').then(res => {
|
getConfigKey('sys.homePage').then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
||||||
if (res.data.configValue) {
|
if (res.data) {
|
||||||
currentComponent.value = defineAsyncComponent(
|
currentComponent.value = defineAsyncComponent(
|
||||||
() => import(`./${res.data.configValue}.vue`)
|
() => import(`./${res.data}.vue`)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ onMounted(() => {
|
|||||||
//获取当前系统设置的首页路径 111为configID
|
//获取当前系统设置的首页路径 111为configID
|
||||||
getConfigKey('sys.homePage').then(res => {
|
getConfigKey('sys.homePage').then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
if (res.code === RESULT_CODE_SUCCESS && res.data) {
|
||||||
state.default = res.data.configValue;
|
state.default = res.data;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user