src/router/index.js
@@ -30,8 +30,8 @@ ]; const router = new Router({ mode: "history", // base: '/YZXNCS',//正式版 打包时解开 base: '/SW',//测试版 打包时解开 // base: '/YZXNCS',//正式版 打包时解开 routes, }); router.beforeEach((to, from, next) => { @@ -56,7 +56,6 @@ // 去index,有token,没过期,进入系统 next(); } } } })