From 7538c58e77be93de82a21b4d7f2b1fe4b8ce7f74 Mon Sep 17 00:00:00 2001 From: lijing1 Date: Wed, 17 Dec 2025 15:15:24 +0800 Subject: [PATCH] =?UTF-8?q?update:=E5=AE=A1=E6=89=B9=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/message/index.ts | 5 ++--- src/spdm/config.ts | 4 ++++ src/views/flow/task/pending.vue | 4 ++-- src/views/flow/task/pendingFlowTask.vue | 6 ++++++ 4 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/api/message/index.ts b/src/api/message/index.ts index 734ccfc..5cd4315 100644 --- a/src/api/message/index.ts +++ b/src/api/message/index.ts @@ -244,11 +244,10 @@ export const taskAdjust = async (item: any, readType: number = MessageRead.READ) }); } } else if (item.msgCategory === MessageCategory.SPDM) { // SPDM CODE + localStorage.setItem('SPDM_MSG_TASK_TYPE', 'flow'); + localStorage.setItem('SPDM_MSG_TASK_ID', params.taskId); router.push({ path: TaskLink.Pending, - query: { - taskType: 'flow' - }, }); } else { router.push({ diff --git a/src/spdm/config.ts b/src/spdm/config.ts index a5328e1..a8f7658 100644 --- a/src/spdm/config.ts +++ b/src/spdm/config.ts @@ -2,6 +2,10 @@ export const SPDM_URL = 'http://192.168.65.161:3000'; // SPDM项目地址 export const BASE_URL = '/spdmApi/honeycom-spdm'; // baseUrl +// // 利元亨内网环境 +// export const SPDM_URL = 'http://192.168.30.147:7115'; // SPDM项目地址 +// export const BASE_URL = '/spdmApi/honeycom-spdm'; // baseUrl + // // 本地环境 // export const SPDM_URL = 'http://192.168.65.64:3001'; // SPDM项目地址 // export const BASE_URL = '/spdmApi/honeycom-spdm'; // baseUrl \ No newline at end of file diff --git a/src/views/flow/task/pending.vue b/src/views/flow/task/pending.vue index 7dd6996..ed8226b 100644 --- a/src/views/flow/task/pending.vue +++ b/src/views/flow/task/pending.vue @@ -51,8 +51,8 @@ import { queryProjectMineTask } from '/@/api/flow/task'; import dayjs from '/@/utils/dayjs'; import { dateStr } from '/@/utils/formatTime'; -const route = useRoute(); // SPDM CODE -const taskType = ref(route.query.taskType || 'project'); +// SPDM CODE +const taskType = ref(localStorage.getItem('SPDM_MSG_TASK_TYPE') || 'project'); enum EnumTaskStatus { all = 1, diff --git a/src/views/flow/task/pendingFlowTask.vue b/src/views/flow/task/pendingFlowTask.vue index a6434e4..f8de325 100644 --- a/src/views/flow/task/pendingFlowTask.vue +++ b/src/views/flow/task/pendingFlowTask.vue @@ -197,6 +197,12 @@ const refuseTask = () => { }; onMounted(() => { getDataList(); + // SPDM CODE + if (localStorage.getItem('SPDM_MSG_TASK_ID')) { + // deal({ taskId: localStorage.getItem('SPDM_MSG_TASK_ID') }); // TODO + localStorage.removeItem('SPDM_MSG_TASK_TYPE'); + localStorage.removeItem('SPDM_MSG_TASK_ID'); + } }); const formValue = computed(() => {