From be9a6acdbb08b56dcaed0faa448d62ff9189f465 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 11 Aug 2022 20:08:36 +0800 Subject: [PATCH] fix(h5): fullPath --- src/core/service/plugins/page/create-page.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/core/service/plugins/page/create-page.js b/src/core/service/plugins/page/create-page.js index 4d62b7eb7..74b5ebeef 100644 --- a/src/core/service/plugins/page/create-page.js +++ b/src/core/service/plugins/page/create-page.js @@ -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) } -- GitLab