Commit a8da4d79 authored by zhangyanni's avatar zhangyanni

打包之后尝试是否可以自动刷新

parent a780f9c9
...@@ -133,9 +133,9 @@ import {Toast} from 'mint-ui'; ...@@ -133,9 +133,9 @@ import {Toast} from 'mint-ui';
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
if (to.name == "mobileLoginCmpt"||to.name=="emailLoginCmpt") { if (to.name == "mobileLoginCmpt"||to.name=="emailLoginCmpt") {
cancelRequest.cancelRequest() cancelRequest.cancelRequest()
next() next(error)
} else { } else {
next() next(error)
} }
if (to.name == "login") { if (to.name == "login") {
if (i18n.locale == "zh-CN") router.push({path:'/mobileLoginCmpt',query:to.query}); if (i18n.locale == "zh-CN") router.push({path:'/mobileLoginCmpt',query:to.query});
......
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