列表页获取位置信息

This commit is contained in:
李瑞
2025-09-08 22:36:17 +08:00
parent 9b508a2bf9
commit 2e3458d606
4 changed files with 21 additions and 19 deletions

View File

@@ -22,7 +22,7 @@ class App extends Component<AppProps> {
// 初始化字典数据
this.initDictionaryData()
this.getNavBarHeight()
this.getLocation()
// this.getLocation()
}
componentDidShow() { }
@@ -46,10 +46,10 @@ class App extends Component<AppProps> {
}
// 获取位置信息
getLocation = () => {
const { getCurrentLocationInfo } = useGlobalStore.getState()
getCurrentLocationInfo()
}
// getLocation = () => {
// const { getCurrentLocationInfo } = useGlobalStore.getState()
// getCurrentLocationInfo()
// }
render() {
// this.props.children 是将要会渲染的页面