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

fix(h5): fullPath

上级 d7462250
......@@ -12,11 +12,15 @@ export default function createPage (pageVm, options) {
}
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__ = {
id,
path: $route.path,
route: $route.meta.pagePath,
fullPath: $route.meta.isEntry ? $route.meta.pagePath : $route.fullPath,
fullPath,
options: options,
meta: Object.assign({}, $route.meta)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册