|
|
@@ -4,8 +4,8 @@ export default ({ app, context, req, store}) => {
|
|
|
const isKaifain = host.indexOf('kaifain') !== -1
|
|
|
const isJishuin = host.indexOf('jishuin') !== -1
|
|
|
const isJob = host.indexOf('job') !== -1
|
|
|
- console.log('before Route Path', window.__NUXT__.routePath)
|
|
|
- console.log("app.router.options.routes", app.router.options.routes)
|
|
|
+ // console.log('before Route Path', window.__NUXT__.routePath)
|
|
|
+ // console.log("app.router.options.routes", app.router.options.routes)
|
|
|
/* if (isKaifain) {
|
|
|
window.__NUXT__.routePath = app.context.route.path.replace(/^\/kaifain/, '/')
|
|
|
let kaifainIndex = app.router.options.routes.filter(v => v.name === 'kaifain')[0]
|
|
|
@@ -121,9 +121,9 @@ export default ({ app, context, req, store}) => {
|
|
|
console.log(e)
|
|
|
}
|
|
|
}
|
|
|
- console.log('router', app.router)
|
|
|
+ // console.log('router', app.router)
|
|
|
app.router.beforeEach((to, from, next) => {
|
|
|
- console.log("beforeEach", to, from)
|
|
|
+ // console.log("beforeEach", to, from)
|
|
|
next()
|
|
|
})
|
|
|
}
|