fix: 系统用户登录主页重复刷新问题
This commit is contained in:
@@ -3,7 +3,6 @@ import Index from '@/views/index/tenantIndex.vue';
|
||||
import { getConfigKey } from '@/api/system/config';
|
||||
import {
|
||||
defineAsyncComponent,
|
||||
nextTick,
|
||||
onMounted,
|
||||
ref,
|
||||
shallowRef,
|
||||
@@ -50,14 +49,10 @@ onMounted(() => {
|
||||
useLayoutStore().changeConf('menuTheme', 'light');
|
||||
useLayoutStore().changeConf('tabRender', false);
|
||||
} else {
|
||||
useLayoutStore().changeConf('layout', 'mix');
|
||||
useLayoutStore().changeConf('menuTheme', 'light');
|
||||
useLayoutStore().changeConf('tabRender', true);
|
||||
|
||||
// location.replace(location.origin);
|
||||
router.replace({ name: 'Monitor_2087' }).finally(() => {
|
||||
nextTick(() => location.reload());
|
||||
});
|
||||
// currentComponent.value = defineAsyncComponent(
|
||||
// () => import('@/views/dashboard/overview/index.vue')
|
||||
// );
|
||||
router.replace({ name: 'Monitor_2087' });
|
||||
return;
|
||||
useLayoutStore().changeConf('layout', 'mix');
|
||||
//获取当前系统设置的首页路径
|
||||
|
||||
Reference in New Issue
Block a user