提交 cf5f33c3 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

refactor: 调整示例,兼容 UniPage

上级 95d70664
...@@ -233,7 +233,7 @@ export const get_page_name = (routepath : string) : string => { ...@@ -233,7 +233,7 @@ export const get_page_name = (routepath : string) : string => {
} }
// @ts-ignore // @ts-ignore
const pageStyle = page.$page.getPageStyle() const pageStyle = (page.$page as UniPage).getPageStyle()
const titleText = pageStyle['navigationBarTitleText'] ?? '' const titleText = pageStyle['navigationBarTitleText'] ?? ''
return titleText as string return titleText as string
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册