列表联调
This commit is contained in:
@@ -6,9 +6,6 @@ import { useDictionaryStore } from './store/dictionaryStore'
|
||||
import { useGlobalStore } from './store/global'
|
||||
import { check_login_status } from './services/loginService';
|
||||
|
||||
|
||||
// import { getNavbarHeight } from "@/utils/getNavbarHeight";
|
||||
|
||||
interface AppProps {
|
||||
children: ReactNode
|
||||
}
|
||||
@@ -31,6 +28,7 @@ class App extends Component<AppProps> {
|
||||
// 初始化字典数据
|
||||
this.initDictionaryData()
|
||||
this.getNavBarHeight()
|
||||
this.getLocation()
|
||||
}
|
||||
|
||||
componentDidShow() { }
|
||||
@@ -51,7 +49,12 @@ class App extends Component<AppProps> {
|
||||
getNavBarHeight = () => {
|
||||
const { getNavbarHeightInfo } = useGlobalStore.getState()
|
||||
getNavbarHeightInfo()
|
||||
}
|
||||
|
||||
// 获取位置信息
|
||||
getLocation = () => {
|
||||
const { getCurrentLocationInfo } = useGlobalStore.getState()
|
||||
getCurrentLocationInfo()
|
||||
}
|
||||
|
||||
render() {
|
||||
|
||||
Reference in New Issue
Block a user