Commit 76da176b authored by wuwangwolihui's avatar wuwangwolihui

营地2.0-路由添加公共query

parent d0f3c6d5
......@@ -197,11 +197,12 @@ function checkCam(code, cb) {
}
router.beforeEach((to, from, next) => {
if (from.fullPath != '/' &&
from.fullPath != '/baseLogin' &&
from.fullPath != '/baseRegister' &&
from.fullPath != '/baseReset') {
store.commit('setPreviousPath', from.fullPath);
console.log(from)
if (from.path != '/' &&
from.path != '/baseLogin' &&
from.path != '/baseRegister' &&
from.path != '/baseReset') {
store.commit('setPreviousPath', from.path);
}
if (to.query && 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