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

fix: add pageMeta when single page

上级 625282f1
......@@ -1171,9 +1171,16 @@ function createPageState(type, __id__) {
};
}
function initPublicPage(route) {
if (!route) {
if (!__UNI_FEATURE_PAGES__) {
const {path: path2, alias} = __uniRoutes[0];
return {id, path: path2, route: alias.substr(1), fullPath: path2};
return {
id,
path: path2,
route: alias.substr(1),
fullPath: path2,
options: {},
meta: usePageMeta()
};
}
const {path} = route;
return {
......
......@@ -68,9 +68,16 @@ export function createPageState(type: NavigateType, __id__?: number) {
}
function initPublicPage(route: RouteLocationNormalizedLoaded) {
if (!route) {
if (!__UNI_FEATURE_PAGES__) {
const { path, alias } = __uniRoutes[0]
return { id, path, route: alias!.substr(1), fullPath: path }
return {
id,
path,
route: alias!.substr(1),
fullPath: path,
options: {},
meta: usePageMeta(),
}
}
const { path } = route
return {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册