mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-18 03:16:40 +08:00
恢复
This commit is contained in:
parent
25aad6ba5f
commit
018bbf0993
@ -10,7 +10,7 @@
|
|||||||
import * as antIcons from '@ant-design/icons-vue';
|
import * as antIcons from '@ant-design/icons-vue';
|
||||||
import Antd, { message } from 'ant-design-vue';
|
import Antd, { message } from 'ant-design-vue';
|
||||||
import lodash from 'lodash';
|
import lodash from 'lodash';
|
||||||
import { createApp } from 'vue';
|
import { createApp, nextTick } from 'vue';
|
||||||
import JsonViewer from 'vue3-json-viewer';
|
import JsonViewer from 'vue3-json-viewer';
|
||||||
import 'vue3-json-viewer/dist/index.css';
|
import 'vue3-json-viewer/dist/index.css';
|
||||||
import App from './App.vue';
|
import App from './App.vue';
|
||||||
@ -26,6 +26,8 @@ import { store } from '/@/store/index';
|
|||||||
import { useUserStore } from '/@/store/modules/system/user';
|
import { useUserStore } from '/@/store/modules/system/user';
|
||||||
import '/@/theme/index.less';
|
import '/@/theme/index.less';
|
||||||
import { getTokenFromCookie } from '/@/utils/cookie-util';
|
import { getTokenFromCookie } from '/@/utils/cookie-util';
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
|
import { PAGE_PATH_LOGIN } from '/@/constants/common-const';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* -------------------- ※ 着重 解释说明下main.js的初始化逻辑 begin ※ --------------------
|
* -------------------- ※ 着重 解释说明下main.js的初始化逻辑 begin ※ --------------------
|
||||||
@ -43,6 +45,8 @@ import { getTokenFromCookie } from '/@/utils/cookie-util';
|
|||||||
/**
|
/**
|
||||||
* 获取用户信息和用户权限对应的路由,构建动态路由
|
* 获取用户信息和用户权限对应的路由,构建动态路由
|
||||||
*/
|
*/
|
||||||
|
const realRouter = useRouter();
|
||||||
|
|
||||||
async function getLoginInfo() {
|
async function getLoginInfo() {
|
||||||
try {
|
try {
|
||||||
//获取登录用户信息
|
//获取登录用户信息
|
||||||
@ -57,6 +61,7 @@ async function getLoginInfo() {
|
|||||||
message.error(e);
|
message.error(e);
|
||||||
smartSentry.captureError(e);
|
smartSentry.captureError(e);
|
||||||
initVue();
|
initVue();
|
||||||
|
router.push({ path: PAGE_PATH_LOGIN });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user