fix(测试计划): 修复测试计划报告初次上来禁用恢复默认
This commit is contained in:
parent
949ede28f7
commit
1f5aca029f
|
@ -273,18 +273,23 @@
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
const isInit = ref(true);
|
||||||
|
|
||||||
watch(
|
watch(
|
||||||
[() => configList.value, () => cardItemList.value],
|
[() => configList.value, () => cardItemList.value],
|
||||||
() => {
|
() => {
|
||||||
const configValue = resetConfigEditList(configList.value);
|
const configValue = resetConfigEditList(cloneDeep(configList.value));
|
||||||
const cardItemValue = resetConfigEditList(cardItemList.value);
|
const cardItemValue = resetConfigEditList(cloneDeep(cardItemList.value));
|
||||||
|
|
||||||
const isisEqualList = props.isGroup ? cloneDeep(defaultGroupConfig) : cloneDeep(defaultSingleConfig);
|
const isisEqualList = props.isGroup ? cloneDeep(defaultGroupConfig) : cloneDeep(defaultSingleConfig);
|
||||||
if (!isEqual(configValue, isisEqualList) || !isEqual(cardItemValue, isisEqualList)) {
|
if (!isEqual(configValue, isisEqualList) || (!isEqual(cardItemValue, isisEqualList) && !isInit.value)) {
|
||||||
nextTick(() => {
|
if (isInit.value) {
|
||||||
hasChange.value = true;
|
isInit.value = false;
|
||||||
});
|
} else {
|
||||||
|
nextTick(() => {
|
||||||
|
hasChange.value = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ deep: true }
|
{ deep: true }
|
||||||
|
|
Loading…
Reference in New Issue