fix: 关联标准规范

This commit is contained in:
JiangSheng
2026-04-14 19:48:39 +08:00
parent 9ad297734b
commit 4cb18d9ea1
2 changed files with 12 additions and 0 deletions

View File

@@ -315,6 +315,11 @@ watch(
.map((path) => path.split(','))
: [];
selected.value = pathsArray;
if (pathsArray.length === 0) {
options.value = [];
optionsKey.value = Date.now();
return;
}
if (pathsArray.length > 0 && pathsArray[0].length > 0) {
if (props.editable) {
await buildOptionsFromIds(pathsArray);

View File

@@ -506,6 +506,13 @@ watch(
prepareFromProps();
} else {
formData.value = {};
standard.value = null;
exceptionFile.value = null;
selectedFlowTemplate.value = null;
isAutoFilled.value = false;
autoFilledFields.value = [];
standardSceneChildren.value = [];
tabName.value = '基础信息';
}
}
);