fix(项目设置): 修复模版关联问题

This commit is contained in:
xinxin.wu 2024-06-25 19:20:51 +08:00 committed by 刘瑞斌
parent d68f283578
commit 4f327535b4
1 changed files with 4 additions and 4 deletions

View File

@ -448,7 +448,9 @@
//
const getFieldOptionList = () => {
totalTemplateField.value = getTotalFieldOptionList(totalTemplateField.value as DefinedFieldItem[]);
if (!isEdit.value) {
selectData.value = totalTemplateField.value.filter((item) => item.internal);
}
};
//
@ -665,9 +667,7 @@
selectData.value = [];
totalTemplateField.value = [];
await getClassifyField();
if (!isEdit.value) {
getFieldOptionList();
}
if (isEdit.value) {
getTemplateInfo();
}