Commit 76da176b authored by wuwangwolihui's avatar wuwangwolihui

营地2.0-路由添加公共query

parent d0f3c6d5
...@@ -197,11 +197,12 @@ function checkCam(code, cb) { ...@@ -197,11 +197,12 @@ function checkCam(code, cb) {
} }
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
if (from.fullPath != '/' && console.log(from)
from.fullPath != '/baseLogin' && if (from.path != '/' &&
from.fullPath != '/baseRegister' && from.path != '/baseLogin' &&
from.fullPath != '/baseReset') { from.path != '/baseRegister' &&
store.commit('setPreviousPath', from.fullPath); from.path != '/baseReset') {
store.commit('setPreviousPath', from.path);
} }
if (to.query && to.query.disCode) { if (to.query && to.query.disCode) {
store.commit('setDisCode', to.query.disCode); store.commit('setDisCode', to.query.disCode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment