This commit is contained in:
lai
2024-10-16 14:23:32 +08:00
parent 53d9e63c36
commit a67e54ca6e
5 changed files with 7 additions and 7 deletions

View File

@@ -8,7 +8,7 @@ import {
reactive,
} from 'vue';
import { listMenu } from '@/api/system/menu';
import { getConfig, changeValue } from '@/api/system/config';
import { getConfig, getConfigKey,changeValue } from '@/api/system/config';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import { message } from 'ant-design-vue';
@@ -19,7 +19,7 @@ const currentComponent = shallowRef(
onMounted(() => {
//获取当前系统设置的首页路径 111为configID
getConfig(111).then(res => {
getConfigKey('sys.homePage').then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
if (res.data.configValue) {
currentComponent.value = defineAsyncComponent(