From 89989e29c08af966749bba4425eaf476762cde6a Mon Sep 17 00:00:00 2001 From: taojinlong Date: Thu, 4 Aug 2022 00:09:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=95=B0=E6=8D=AE=E6=BA=90):=20=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=95=B0=E6=8D=AE=E6=BA=90=E6=98=AF=E5=90=A6=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/datasource/DsForm.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/system/datasource/DsForm.vue b/frontend/src/views/system/datasource/DsForm.vue index 0a7db4318d..9c35a18e28 100644 --- a/frontend/src/views/system/datasource/DsForm.vue +++ b/frontend/src/views/system/datasource/DsForm.vue @@ -314,7 +314,6 @@ export default { edit(row) { this.formType = 'modify' this.form = JSON.parse(JSON.stringify(row)) - this.originConfiguration = this.form.configuration if (row.type === 'api') { this.originConfiguration = JSON.parse(JSON.stringify(this.form.apiConfiguration)) this.originConfiguration.forEach(item => { @@ -323,7 +322,9 @@ export default { this.originConfiguration = JSON.stringify(this.originConfiguration) } else { this.form.configuration = JSON.parse(this.form.configuration) + this.originConfiguration = JSON.stringify(this.form.configuration) } + this.disabled = this.params && this.params.id && this.params.showModel && this.params.showModel === 'show' && !this.canEdit }, reset() { @@ -482,7 +483,7 @@ export default { method(form).then(res => { this.$success(i18n.t('commons.save_success')) this.refreshType(form) - // this.backToList() + this.backToList() }) }, getSchema() {