From e751477e7337821ceb7f882960e46d6b5efb9679 Mon Sep 17 00:00:00 2001 From: bestlee Date: Sat, 10 Oct 2026 10:23:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E6=89=B9=E5=90=8E=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=92=8C=E5=8F=91=E8=B5=B7=E5=8F=98=E6=9B=B4?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E5=90=8E=E8=B7=B3=E8=BD=AC=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/details/approval/index.vue | 2 ++ src/views/my/initiateChange/index.vue | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/views/details/approval/index.vue b/src/views/details/approval/index.vue index 2b5e0c4..7b1cb8a 100644 --- a/src/views/details/approval/index.vue +++ b/src/views/details/approval/index.vue @@ -397,6 +397,7 @@ const rejectSave = async () => { if(!error){ rejectModal.value = false; window.$message?.success('驳回成功'); + back(); } rejectSaving.value = false; } @@ -406,6 +407,7 @@ const agreeSave = async () => { const {error} = await agreeApi({change_id:currentId.value,opinion:comment.value}); if(!error){ window.$message?.success('同意成功'); + back(); } loading.value = false; } diff --git a/src/views/my/initiateChange/index.vue b/src/views/my/initiateChange/index.vue index 645da91..c26e78b 100644 --- a/src/views/my/initiateChange/index.vue +++ b/src/views/my/initiateChange/index.vue @@ -3,6 +3,7 @@ import { computed, nextTick, onMounted, provide, ref } from 'vue'; import { Icon } from '@iconify/vue' import { useThemeStore } from '@/store/modules/theme'; import { useRoute } from 'vue-router'; +import { useRouterPush } from '@/hooks/common/router'; import { getColorWithOpacity } from "@/utils/common"; import { localStg } from '@/utils/storage'; import { queryUnsavedApi, saveChangeApi, submitChangeApi, getChangeDetailApi } from '@/service/api/change'; @@ -19,6 +20,7 @@ import CloseConfirm from "./modules/closeConfirm.vue"; const themeStore = useThemeStore(); const route = useRoute(); +const { routerPushByKey } = useRouterPush(); const saveLoading = ref(false) const btnDisabled = ref(false); @@ -241,6 +243,7 @@ const submitConfirm = async (type: string) => { const {error} = await submitChangeApi(currentId.value, form); if(!error){ window.$message?.success("提交成功"); + routerPushByKey('my_mytask'); } }