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

fix(h5): fullPath

上级 dc47cd13
......@@ -6917,7 +6917,11 @@ function initPublicPage(route) {
if (!__UNI_FEATURE_PAGES__) {
return initPageInternalInstance("navigateTo", __uniRoutes[0].path, {}, meta);
}
return initPageInternalInstance("navigateTo", route.fullPath, {}, meta);
let fullPath = route.fullPath;
if (route.meta.isEntry) {
fullPath = "/" + route.meta.route + fullPath.replace("/", "");
}
return initPageInternalInstance("navigateTo", fullPath, {}, meta);
}
function initPage(vm) {
const route = vm.$route;
......
......@@ -14066,7 +14066,11 @@ function initPublicPage(route) {
if (!__UNI_FEATURE_PAGES__) {
return initPageInternalInstance("navigateTo", __uniRoutes[0].path, {}, meta);
}
return initPageInternalInstance("navigateTo", route.fullPath, {}, meta);
let fullPath = route.fullPath;
if (route.meta.isEntry) {
fullPath = "/" + route.meta.route + fullPath.replace("/", "");
}
return initPageInternalInstance("navigateTo", fullPath, {}, meta);
}
function initPage(vm) {
const route = vm.$route;
......
......@@ -88,7 +88,11 @@ function initPublicPage(route: RouteLocationNormalizedLoaded) {
if (!__UNI_FEATURE_PAGES__) {
return initPageInternalInstance('navigateTo', __uniRoutes[0].path, {}, meta)
}
return initPageInternalInstance('navigateTo', route.fullPath, {}, meta)
let fullPath = route.fullPath
if (route.meta.isEntry) {
fullPath = '/' + route.meta.route + fullPath.replace('/', '')
}
return initPageInternalInstance('navigateTo', fullPath, {}, meta)
}
export function initPage(vm: ComponentPublicInstance) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册