From a188aae60db6d088c8f129c766d308670cd96bc8 Mon Sep 17 00:00:00 2001 From: bestlee Date: Sat, 10 Oct 2026 11:23:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=9D=BF=E7=AE=A1=E7=90=86-=E8=B5=84?= =?UTF-8?q?=E6=96=99=E5=85=B3=E9=97=AD=E6=9F=A5=E7=9C=8B=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/systemManage/template/index.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/views/systemManage/template/index.vue b/src/views/systemManage/template/index.vue index 37fc104..9d30e06 100644 --- a/src/views/systemManage/template/index.vue +++ b/src/views/systemManage/template/index.vue @@ -235,9 +235,9 @@ const handleView = (row: any) => { currentTemplate.value = { id: row.id, type: row.type, - category: row.category.toString(), - level: row.level.toString(), - duration: row.duration, + category: row?.category?.toString(), + level: row?.level?.toString(), + duration: row?.duration, steps: row.steps, }; templateModal.value = true; @@ -248,9 +248,9 @@ const handleEdit = (row: any) => { let obj = { id: row.id, type: row.type, - category: row.category.toString(), - level: row.level.toString(), - duration: row.duration, + category: row?.category?.toString(), + level: row?.level?.toString(), + duration: row?.duration, steps: row.steps, }; currentTemplate.value = JSON.parse(JSON.stringify(obj));