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

refactor(uni-stat): remove ts-ignore

上级 cf5f33c3
......@@ -228,11 +228,9 @@ export const get_page_name = (routepath : string) : string => {
if (page_now == null) {
return ''
}
// @ts-ignore
page = page_now.vm!
}
// @ts-ignore
const pageStyle = (page.$page as UniPage).getPageStyle()
const titleText = pageStyle['navigationBarTitleText'] ?? ''
return titleText as string
......@@ -248,7 +246,6 @@ export const get_page_vm = () : Page | null => {
}
let page = pages[pages.length - 1]
// TODO 正常来说,调用当前方法的地方只在 生命周期内,数组内最少会有一个页面,所以理论上是不存在获取不到的情况的
// @ts-ignore
return page.vm
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册