模板管理-资料关闭查看修改

This commit is contained in:
2026-10-10 11:23:56 +08:00
parent 7e224d6df6
commit a188aae60d
+6 -6
View File
@@ -235,9 +235,9 @@ const handleView = (row: any) => {
currentTemplate.value = { currentTemplate.value = {
id: row.id, id: row.id,
type: row.type, type: row.type,
category: row.category.toString(), category: row?.category?.toString(),
level: row.level.toString(), level: row?.level?.toString(),
duration: row.duration, duration: row?.duration,
steps: row.steps, steps: row.steps,
}; };
templateModal.value = true; templateModal.value = true;
@@ -248,9 +248,9 @@ const handleEdit = (row: any) => {
let obj = { let obj = {
id: row.id, id: row.id,
type: row.type, type: row.type,
category: row.category.toString(), category: row?.category?.toString(),
level: row.level.toString(), level: row?.level?.toString(),
duration: row.duration, duration: row?.duration,
steps: row.steps, steps: row.steps,
}; };
currentTemplate.value = JSON.parse(JSON.stringify(obj)); currentTemplate.value = JSON.parse(JSON.stringify(obj));