From 39aed27e9246b23ee7b2b1f0757ec334cb108802 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Thu, 23 Mar 2023 11:42:53 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2jsonSchema=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=80=BC=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../json-schema/schema/editor/mock/MockComplete.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api-test/frontend/src/business/commons/json-schema/schema/editor/mock/MockComplete.vue b/api-test/frontend/src/business/commons/json-schema/schema/editor/mock/MockComplete.vue index ccd571ed3d..2edda6aa63 100644 --- a/api-test/frontend/src/business/commons/json-schema/schema/editor/mock/MockComplete.vue +++ b/api-test/frontend/src/business/commons/json-schema/schema/editor/mock/MockComplete.vue @@ -57,6 +57,14 @@ export default { mock: { mock: '' }, }; }, + watch: { + schema: { + handler() { + this.schema.mock = this.mock; + }, + deep: true, + }, + }, created() { if ( this.schema.mock &&