From 529a0c5719676ec30845c3b4cb678bd3783894ad Mon Sep 17 00:00:00 2001 From: wupengfei <834520024@qq.com> Date: 星期五, 19 九月 2025 15:33:57 +0800 Subject: [PATCH] fix: bug --- apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue | 29 ++++++++++++++++------------- 1 files changed, 16 insertions(+), 13 deletions(-) diff --git a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue index 683b95e..76a83fc 100644 --- a/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue +++ b/apps/cMiniApp/src/subpackages/task/taskDetail/InnerPage.vue @@ -123,7 +123,7 @@ @click="handleCall" ></PageFooterAction> <PageFooterBtn - v-if="from === 'sign'" + v-if="from === 'sign' && !!detail?.applyButton" type="primary" :disabled="detail?.applyButton === GetTaskInfoQueryResultApplyButton.WaitHire" @click="handleSign" @@ -236,18 +236,21 @@ } }); -const handleApply = useAccessLogin(async () => { - try { - let params: API.ApplyTaskCommand = { - ids: [id], - }; - let res = await taskUserServices.applyTask(params); - if (res) { - Message.success('鎶ュ悕鎴愬姛'); - refetch({ type: 'inactive' }); - } - } catch (error) {} -}); +const handleApply = useAccessReal( + async () => { + try { + let params: API.ApplyTaskCommand = { + ids: [id], + }; + let res = await taskUserServices.applyTask(params); + if (res) { + Message.success('鎶ュ悕鎴愬姛'); + refetch({ type: 'inactive' }); + } + } catch (error) {} + }, + { message: '瀹炲悕鎴愬姛鍚庢墠鍙姤鍚嶏紝璇峰墠寰�瀹炲悕璁よ瘉' } +); const handleAttention = useAccessLogin(async () => { try { -- Gitblit v1.9.1