Commit 91d4df5a by zhangxw

修改 未授权过的直接扫码进入收款测试页面跳转错误bug

1 parent 768e4578
......@@ -29,6 +29,8 @@ router.beforeEach((to, from, next) => {
/* 路由发生变化修改页面title */
if (to.meta.title) store.dispatch('setPageMeta', to.meta)
store.commit('SET_LAST_PATH', to.name)
// 收款测试页面直接进入
if (to.path && to.path.indexOf('testPayMerchant/index/split') > -1) store.commit('SET_LAST_PATH', 'testPayMerchant.index')
/* 路由发生变化修改页面背景色 */
if (to.meta.backgroundColor) document.documentElement.style.backgroundColor = to.meta.backgroundColor
if (to.matched.some(recode => recode.meta.noAuth)) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!