更改首页代码文件路径
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user