Skip to content

Commit

Permalink
fix(h5): fullPath
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Aug 11, 2022
1 parent d746225 commit be9a6ac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/service/plugins/page/create-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit be9a6ac

Please sign in to comment.