This commit is contained in:
lai
2024-10-16 14:50:47 +08:00
parent a67e54ca6e
commit f1b440c8dd
2 changed files with 4 additions and 4 deletions

View File

@@ -18,12 +18,12 @@ const currentComponent = shallowRef(
);
onMounted(() => {
//获取当前系统设置的首页路径 111为configID
//获取当前系统设置的首页路径
getConfigKey('sys.homePage').then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
if (res.data.configValue) {
if (res.data) {
currentComponent.value = defineAsyncComponent(
() => import(`./${res.data.configValue}.vue`)
() => import(`./${res.data}.vue`)
);
}
}

View File

@@ -69,7 +69,7 @@ onMounted(() => {
//获取当前系统设置的首页路径 111为configID
getConfigKey('sys.homePage').then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
state.default = res.data.configValue;
state.default = res.data;
}
});
});