From 8d5e327b23986583ad30d9ec1e1bae3f2e1edb38 Mon Sep 17 00:00:00 2001
From: 付延余 <f-yanyu@outlook.com>
Date: 星期日, 17 四月 2022 13:33:07 +0800
Subject: [PATCH] 人事人才
---
build/utils.js | 3 ++-
src/router/index.js | 35 ++++++++++++++++++-----------------
2 files changed, 20 insertions(+), 18 deletions(-)
diff --git a/build/utils.js b/build/utils.js
index 3436dc3..7a81b91 100644
--- a/build/utils.js
+++ b/build/utils.js
@@ -54,7 +54,8 @@
if (options.extract) {
return ExtractTextPlugin.extract({
use: loaders,
- fallback: 'vue-style-loader'
+ fallback: 'vue-style-loader',
+ publicPath:'../../'
})
} else {
return ['vue-style-loader'].concat(loaders)
diff --git a/src/router/index.js b/src/router/index.js
index 6a92bc4..8a8bb43 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -36,13 +36,14 @@
export const router = new Router(RouterConfig);
// 鎷︽埅鍣ㄥ鐞�
-router.beforeEach((to, from, next) => {
- const token = store.getters.token
- if(to.name !== 'login' && !token) {
- next({name: 'login'})
- }else {
- next()
- }
+// router.beforeEach((to, from, next) => {
+ // const token = store.getters.token
+ // if(to.name !== 'login' && !token) {
+ // // next({name: 'login'})
+ // // }else {
+ // // next()
+ // // }
+
// if (to.path == '/login') {
// removeStore('userinfo');
// }
@@ -67,24 +68,24 @@
// 椤甸潰涓嶅瓨鍦�
// console.log(to)
- if (to.matched.length == 0) {
- next({ path: '/404' })
- }
+ // if (to.matched.length == 0) {
+ // next({ path: '/404' })
+ // }
- startTime = new Date().getTime()
+ // startTime = new Date().getTime()
// NProgress.start();
- next()
-})
+ // next()
+// })
-router.afterEach((to) => {
- if (passPath.indexOf(to.path) === -1) {
+// router.afterEach((to) => {
+// if (passPath.indexOf(to.path) === -1) {
// var consumingTime = new Date().getTime() - startTime
// notification.info({
// message: '姝ゆ鍔犺浇椤甸潰娑堣�楁椂闂�',
// duration:2,
// description: `鑰楁椂${consumingTime / 1000}绉抈,
// });
- }
+ // }
// NProgress.done();
-});
+// });
--
Gitblit v1.9.1