|
|
@@ -4,7 +4,6 @@ export default ({
|
|
|
req,
|
|
|
store
|
|
|
}) => {
|
|
|
-
|
|
|
if (process.client) {
|
|
|
const {
|
|
|
host
|
|
|
@@ -12,6 +11,7 @@ export default ({
|
|
|
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)
|
|
|
if (isKaifain) {
|
|
|
window.__NUXT__.routePath = app.context.route.path.replace(/^\/kaifain/, '')
|
|
|
@@ -136,12 +136,3 @@ export default ({
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
-function getMatchedComponents(route, matches = false, prop = 'components') {
|
|
|
- return Array.prototype.concat.apply([], route.matched.map((m, index) => {
|
|
|
- return Object.keys(m[prop]).map((key) => {
|
|
|
- matches && matches.push(index)
|
|
|
- return m[prop][key]
|
|
|
- })
|
|
|
- }))
|
|
|
-}
|