列表页获取位置信息
This commit is contained in:
10
src/app.ts
10
src/app.ts
@@ -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 是将要会渲染的页面
|
||||
|
||||
Reference in New Issue
Block a user