|
@@ -20,7 +20,7 @@ import * as echarts from 'echarts'
|
|
|
import 'echarts/lib/component/tooltip';
|
|
|
import 'echarts/lib/component/title';
|
|
|
import 'echarts/lib/component/legend';
|
|
|
-import { ElMessage } from "element-plus";
|
|
|
+// import { ElMessage } from "element-plus";
|
|
|
import { removeToken } from './utils/auth';
|
|
|
|
|
|
const app = createApp(App);
|
|
@@ -52,12 +52,12 @@ router.beforeEach((to, from, next) => {
|
|
|
if (sessionStorage.getItem('userInfo') === null) {
|
|
|
next({ path: '/' })
|
|
|
document.getElementById('routers').style.display = "none"
|
|
|
- setTimeout(() => {
|
|
|
- ElMessage.warning({
|
|
|
- message: '请登录后重试!',
|
|
|
- type: 'warning'
|
|
|
- });
|
|
|
- }, 100);
|
|
|
+ // setTimeout(() => {
|
|
|
+ // ElMessage.warning({
|
|
|
+ // message: '请登录后重试!',
|
|
|
+ // type: 'warning'
|
|
|
+ // });
|
|
|
+ // }, 100);
|
|
|
|
|
|
} else {
|
|
|
next();
|