Browse Source

调度中心

Shannon_mu 2 years ago
parent
commit
6d6263b77a
2 changed files with 7 additions and 7 deletions
  1. 3 3
      commandCenter/src/main.js
  2. 4 4
      commandCenter/src/router/index.js

+ 3 - 3
commandCenter/src/main.js

@@ -38,9 +38,9 @@ Vue.use(ElementUI, {
 });
 
 //使用钩子函数对路由进行权限跳转
-router.beforeEach((to, from, next) => {
-  next()
-});
+// router.beforeEach((to, from, next) => {
+//   next()
+// });
 new Vue({
   router,
   store,

+ 4 - 4
commandCenter/src/router/index.js

@@ -1,10 +1,10 @@
 import Vue from 'vue';
 import Router from 'vue-router';
 
-const original = Router.prototype.replace;
-Router.prototype.replace = function replace(location) {
-    return original.call(this, location).catch((err) => err);
-};
+// const original = Router.prototype.replace;
+// Router.prototype.replace = function replace(location) {
+//     return original.call(this, location).catch((err) => err);
+// };
 Vue.use(Router);
 const quietRoute = [
     {