更改首页代码文件路径

This commit is contained in:
lai
2024-10-16 15:11:26 +08:00
parent f1b440c8dd
commit 2a6451ef2a
2 changed files with 4 additions and 13 deletions

View File

@@ -1,24 +1,15 @@
<script setup lang="ts">
import {
defineAsyncComponent,
onMounted,
toRaw,
shallowRef,
ref,
reactive,
} from 'vue';
import { listMenu } from '@/api/system/menu';
import { getConfig, getConfigKey,changeValue } from '@/api/system/config';
import { defineAsyncComponent, onMounted, shallowRef } from 'vue';
import { getConfigKey, changeValue } from '@/api/system/config';
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import { message } from 'ant-design-vue';
// 异步加载组件
const currentComponent = shallowRef(
defineAsyncComponent(() => import('./neStatus/index.vue'))
defineAsyncComponent(() => import('@/views/configManage/neOverview/index.vue'))
);
onMounted(() => {
//获取当前系统设置的首页路径
//获取当前系统设置的首页路径
getConfigKey('sys.homePage').then(res => {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
if (res.data) {