增加获取场馆、字典

This commit is contained in:
筱野
2025-08-24 16:04:31 +08:00
parent c6f4f11259
commit bb6ec8c183
29 changed files with 1217 additions and 414 deletions

View File

@@ -1,18 +1,32 @@
import { Component, ReactNode } from 'react'
import './app.scss'
import './nutui-theme.scss'
import { useDictionaryStore } from './store/dictionaryStore'
interface AppProps {
children: ReactNode
}
class App extends Component<AppProps> {
componentDidMount() {}
componentDidMount() {
// 初始化字典数据
this.initDictionaryData()
}
componentDidShow() {}
componentDidHide() {}
// 初始化字典数据
private async initDictionaryData() {
try {
const { fetchDictionary } = useDictionaryStore.getState()
await fetchDictionary()
} catch (error) {
console.error('初始化字典数据失败:', error)
}
}
render() {
// this.props.children 是将要会渲染的页面
return this.props.children