chore: 小修改

This commit is contained in:
xiaojunnuo
2025-06-29 00:25:08 +08:00
parent acaa8b1731
commit a761989f3e
8 changed files with 205 additions and 200 deletions

View File

@@ -189,6 +189,7 @@ watch(
const input = pluginType === "plugin" ? form.input : form;
const watches = {};
for (const key of props.watches) {
//@ts-ignore
watches[key] = input[key];
}
return {
@@ -198,10 +199,11 @@ watch(
},
async (value, oldValue) => {
const { form } = value;
const oldForm = oldValue.form;
const oldForm = oldValue?.form;
let changed = oldForm == null || optionsRef.value.length == 0;
for (const key of props.watches) {
if (form[key] != oldForm[key]) {
//@ts-ignore
if (oldForm && form[key] != oldForm[key]) {
changed = true;
break;
}