diff --git a/src/views/ApplyView.vue b/src/views/ApplyView.vue index 1020ab7..cbc88b6 100644 --- a/src/views/ApplyView.vue +++ b/src/views/ApplyView.vue @@ -98,6 +98,7 @@ import MobileHeader from '../components/MobileHeader.vue' import { sendTeamApplyJoin, getWaitApplyRecord, cancelApply, searchTeamByAccount } from '../api/wallet.js' import {showError, showWarning, showInfo, showSuccess} from "@/utils/toast.js"; import { ApiError } from '@/utils/http.js'; +import {usePageInitializationWithConfig} from "@/utils/pageConfig.js"; const router = useRouter() @@ -284,9 +285,16 @@ const getStatusClass = (status) => { } // 页面加载时获取申请记录 -onMounted(() => { - fetchApplyRecords() +usePageInitializationWithConfig('APPLY', { + needsBankBalance: false, + needsWorkStatistics: false, + needsTeamInfo: false, + needsRouteGuard: true, + onDataLoaded: () => { + fetchApplyRecords() + } }) +