diff --git a/src/components/AcceptAssignmentModal.vue b/src/components/AcceptAssignmentModal.vue index 1c3251f..1e5d882 100644 --- a/src/components/AcceptAssignmentModal.vue +++ b/src/components/AcceptAssignmentModal.vue @@ -4,7 +4,7 @@ import XModal from "./XModal.vue"; import {getCurrentInstance, nextTick, onMounted, reactive, ref, watch} from "vue"; import PlatformENUM from "../enum/PlatformENUM"; import Api from "../api/index"; -import {showToast} from "../utils/uils"; +import {showToast, toPage} from "../utils/uils"; const emits = defineEmits(['success']); const {details} = defineProps({ @@ -76,12 +76,13 @@ const success = async () => { showToast('请选择帐号'); return; } - const {msg} = await Api.system.acceptTask({ + const {msg, data} = await Api.system.acceptTask({ id: details.id, account: selected.value, }); showToast(msg); show.value = false; + await toPage(`/pages/taskDetails/index?id=${data[1]}&task_children_id=${0}&delta=999`) emits('success'); } @@ -134,7 +135,7 @@ const success = async () => {