diff --git a/client/src/App.vue b/client/src/App.vue index 209f30e..529eba9 100644 --- a/client/src/App.vue +++ b/client/src/App.vue @@ -2,6 +2,7 @@ import { onLaunch } from '@dcloudio/uni-app' import { wxLogin, demoLogin } from '@/api/auth' import { useGroupStore } from '@/stores/group' +import { useConfigStore } from '@/stores/config' import { saveLoginResult } from '@/utils/request' import { markReady } from '@/utils/app-ready' @@ -25,7 +26,9 @@ async function loginWithRetry(loginFn: () => Promise, retries = 3): Promise onLaunch(() => { const groupStore = useGroupStore() + const configStore = useConfigStore() groupStore.init() + configStore.fetchConfig() // #ifdef MP-WEIXIN uni.login({ diff --git a/client/src/pages.json b/client/src/pages.json index e0b8cbc..c6ec7cb 100644 --- a/client/src/pages.json +++ b/client/src/pages.json @@ -35,21 +35,24 @@ "path": "pages/profile/index", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "我的" + "navigationBarTitleText": "我的", + "enablePullDownRefresh": true } }, { "path": "pages/category-manage/index", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "分类管理" + "navigationBarTitleText": "分类管理", + "enablePullDownRefresh": true } }, { "path": "pages/budget/index", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "预算设置" + "navigationBarTitleText": "预算设置", + "enablePullDownRefresh": true } }, { @@ -63,7 +66,8 @@ "path": "pages/group-manage/index", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "一起记" + "navigationBarTitleText": "一起记", + "enablePullDownRefresh": true } }, { @@ -78,7 +82,8 @@ "path": "pages/admin/index", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "管理后台" + "navigationBarTitleText": "管理后台", + "enablePullDownRefresh": true } }, { @@ -86,7 +91,7 @@ "style": { "navigationStyle": "custom", "navigationBarTitleText": "用户管理", - "enablePullDownRefresh": false + "enablePullDownRefresh": true } }, { @@ -115,14 +120,16 @@ "path": "pages/admin/feedback", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "反馈管理" + "navigationBarTitleText": "反馈管理", + "enablePullDownRefresh": true } }, { "path": "pages/admin/config", "style": { "navigationStyle": "custom", - "navigationBarTitleText": "系统配置" + "navigationBarTitleText": "系统配置", + "enablePullDownRefresh": true } } ], diff --git a/client/src/pages/admin/config.vue b/client/src/pages/admin/config.vue index 99d6c3f..f6fbe92 100644 --- a/client/src/pages/admin/config.vue +++ b/client/src/pages/admin/config.vue @@ -52,6 +52,7 @@