模板管理-资料关闭查看修改
This commit is contained in:
@@ -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));
|
||||||
|
|||||||
Reference in New Issue
Block a user