提交 be9a6acd 编写于 作者: fxy060608's avatar fxy060608

fix(h5): fullPath

上级 d7462250
...@@ -12,11 +12,15 @@ export default function createPage (pageVm, options) { ...@@ -12,11 +12,15 @@ export default function createPage (pageVm, options) {
} }
const id = hasOwn($route.params, '__id__') ? $route.params.__id__ : $route.meta.id const id = hasOwn($route.params, '__id__') ? $route.params.__id__ : $route.meta.id
let fullPath = $route.fullPath
if ($route.meta.isEntry) {
fullPath = '/' + $route.meta.pagePath + fullPath.replace('/', '')
}
pageVm.__page__ = { pageVm.__page__ = {
id, id,
path: $route.path, path: $route.path,
route: $route.meta.pagePath, route: $route.meta.pagePath,
fullPath: $route.meta.isEntry ? $route.meta.pagePath : $route.fullPath, fullPath,
options: options, options: options,
meta: Object.assign({}, $route.meta) meta: Object.assign({}, $route.meta)
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册