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'); } }