yf_zd hace 5 años
padre
commit
4b0e0168bb
Se han modificado 2 ficheros con 5 adiciones y 4 borrados
  1. 3 1
      src/main.js
  2. 2 3
      src/router/index.js

+ 3 - 1
src/main.js

@@ -93,7 +93,9 @@ Vue.filter('equipType', function (i) {
       break;
       break;
   }
   }
 })
 })
-
+router.beforeEach((to, from, next) => {
+  next()
+})
 
 
 /* eslint-disable no-new */
 /* eslint-disable no-new */
 new Vue({
 new Vue({

+ 2 - 3
src/router/index.js

@@ -141,14 +141,13 @@ export default new Router({
     //-------------------溯源模块-----------溯源中心----------
     //-------------------溯源模块-----------溯源中心----------
     {
     {
       path: '/tracebackDetail/:backcode',
       path: '/tracebackDetail/:backcode',
+      name:'TracebackDetail',
       component: TracebackDetail,
       component: TracebackDetail,
     },
     },
     {
     {
       path: '/tracebackDetailApp/:backcode',
       path: '/tracebackDetailApp/:backcode',
+      name:'TracebackDetailApp',
       component: TracebackDetailApp,
       component: TracebackDetailApp,
-      meta: {
-        login_require: false,
-      }
     },
     },
   ],
   ],
   // mode:'history'
   // mode:'history'