update
This commit is contained in:
parent
7cbb862d4f
commit
fd6d35b044
@ -170,7 +170,12 @@ router.beforeEach((to, from, next) => {
|
||||
}
|
||||
if (!store.state.app.merchant_id) {
|
||||
if (to.path != '/missingPage') {
|
||||
next({ path: '/missingPage' })
|
||||
const IS_PROD = ['production', 'prod'].includes(process.env.NODE_ENV)
|
||||
if (!IS_PROD) {
|
||||
next({ path: '/information', query: { merchant_id: 596 }})
|
||||
} else {
|
||||
next({ path: '/missingPage' })
|
||||
}
|
||||
} else {
|
||||
next()
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user