This commit is contained in:
lanzhihui 2026-04-15 16:37:56 +08:00
parent 7cbb862d4f
commit fd6d35b044

View File

@ -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()
}