From 8a731937cfbafa6bdfc61a5ea7e2a821dc0bc291 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chuailei000=E2=80=9D?= <2280131253@qq.com> Date: Thu, 21 Apr 2022 16:44:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=89=B9=E9=87=8F=E6=9B=B4=E6=96=B0=E5=BC=B9?= =?UTF-8?q?=E7=AA=97=E7=BB=84=E4=BB=B6=E4=B8=8D=E9=87=8D=E6=96=B0=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/components/GenericUpdateFormDialog/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layout/components/GenericUpdateFormDialog/index.vue b/src/layout/components/GenericUpdateFormDialog/index.vue index 66bd24a49..45ee1e6cf 100644 --- a/src/layout/components/GenericUpdateFormDialog/index.vue +++ b/src/layout/components/GenericUpdateFormDialog/index.vue @@ -97,10 +97,10 @@ export default { getDefaultFormSetting() { const vm = this return { - submitMethod: () => 'post', + submitMethod: () => 'patch', cleanFormValue: function(value) { const filterValue = {} - Object.keys(value).filter((key) => vm.checkedFields.includes(key)).forEach((key) => { + Object.keys(value).filter((key) => vm.checkedFields?.includes(key)).forEach((key) => { filterValue[key] = value[key] }) const formValue = []