修改交互逻辑.

This commit is contained in:
lijiahang
2023-09-14 17:24:18 +08:00
parent f8b694c16a
commit a210fb93fd
15 changed files with 67 additions and 43 deletions

View File

@@ -93,7 +93,8 @@
const openUpdate = (record: any) => {
title.value = '修改主机';
isAddHandle.value = false;
renderForm({ ...defaultForm(), ...record });
const tags = record?.tags?.map((s: { id: any; }) => s.id);
renderForm({ ...defaultForm(), ...record, tags });
setVisible(true);
};