From e5c34df09d06094a31a5f9a27be21c3f4f527475 Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Wed, 11 Mar 2026 10:19:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/is/project/index.vue | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/src/views/is/project/index.vue b/src/views/is/project/index.vue index f65a256..e42f61c 100644 --- a/src/views/is/project/index.vue +++ b/src/views/is/project/index.vue @@ -546,12 +546,15 @@ const handleUpdate = (row) => { isAdd.value = false; title.value = "修改测试项目"; form.value = row; - const arr = [] + let arr = [] try { arr = JSON.parse(form.value.testFuncIds); - } catch {} - form.value.testFuncIds = arr - getFuncList(form.value.vehicleConfigId) + } catch { + arr = [] + } finally { + form.value.testFuncIds = arr + getFuncList(form.value.vehicleConfigId) + } }; const handleDelete = (row) => { @@ -620,12 +623,14 @@ const handleExecute = (row) => { executeOpen.value = true; executeProjectId.value = row.projectId; // 后端临时应付检查添加,后续可删除 - const arr = [] + let arr = [] try { - arr = JSON.parse(form.value.testFuncIds); - } catch {} - form.value.testFuncIds = arr - functionIds.value = arr + arr = JSON.parse(row.testFuncIds); + } catch { + arr = [] + } finally { + functionIds.value = arr + } } const router = useRouter()