fix: 增加错误判断

This commit is contained in:
zhanghao 2026-03-11 10:19:26 +08:00
parent 243d0a60c4
commit e5c34df09d

View File

@ -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 {}
} catch {
arr = []
} finally {
form.value.testFuncIds = arr
getFuncList(form.value.vehicleConfigId)
}
};
const handleDelete = (row) => {
@ -620,13 +623,15 @@ 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
arr = JSON.parse(row.testFuncIds);
} catch {
arr = []
} finally {
functionIds.value = arr
}
}
const router = useRouter()
const handleEvaluate = (row) => {