更改首页代码文件路径
This commit is contained in:
@@ -1,24 +1,15 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {
|
import { defineAsyncComponent, onMounted, shallowRef } from 'vue';
|
||||||
defineAsyncComponent,
|
import { getConfigKey, changeValue } from '@/api/system/config';
|
||||||
onMounted,
|
|
||||||
toRaw,
|
|
||||||
shallowRef,
|
|
||||||
ref,
|
|
||||||
reactive,
|
|
||||||
} from 'vue';
|
|
||||||
import { listMenu } from '@/api/system/menu';
|
|
||||||
import { getConfig, getConfigKey,changeValue } from '@/api/system/config';
|
|
||||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||||
import { message } from 'ant-design-vue';
|
|
||||||
|
|
||||||
// 异步加载组件
|
// 异步加载组件
|
||||||
const currentComponent = shallowRef(
|
const currentComponent = shallowRef(
|
||||||
defineAsyncComponent(() => import('./neStatus/index.vue'))
|
defineAsyncComponent(() => import('@/views/configManage/neOverview/index.vue'))
|
||||||
);
|
);
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
//获取当前系统设置的首页路径
|
//获取当前系统设置的首页路径
|
||||||
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) {
|
if (res.data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user