fix(接口测试): 修复切换jsonSchema类型值不生效的缺陷

This commit is contained in:
wxg0103 2023-03-23 11:42:53 +08:00 committed by fit2-zhao
parent bd24753190
commit 388530c7e1
1 changed files with 8 additions and 0 deletions

View File

@ -57,6 +57,14 @@ export default {
mock: { mock: '' },
};
},
watch: {
schema: {
handler() {
this.schema.mock = this.mock;
},
deep: true,
},
},
created() {
if (
this.schema.mock &&