From c9fddbd4a7f68797dd625a298691db9a21d2b46b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=BF=E5=B0=8F=E5=A4=A9?= <1638245306@qq.com> Date: Fri, 28 Apr 2023 12:02:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=A7=92=E8=89=B2=E6=8E=88=E6=9D=83):=20?= =?UTF-8?q?=F0=9F=90=9B=20=E6=9D=83=E9=99=90=E5=88=A0=E9=99=A4=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/system/rolePermission/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/src/views/system/rolePermission/index.vue b/web/src/views/system/rolePermission/index.vue index fe5e9ba..724d5a5 100644 --- a/web/src/views/system/rolePermission/index.vue +++ b/web/src/views/system/rolePermission/index.vue @@ -323,7 +323,8 @@ const onSaveButtonForm = async () => { await buttonFormRef.value.validate((valid, fields) => { if (valid) { api.CreatePermission(form).then((res: any) => { - buttonPermissionData.value.push(form) + const {data} = res + buttonPermissionData.value.push(data) dialogFormVisible.value = false ElMessage({ type: 'success', @@ -353,7 +354,7 @@ const onDeleteBtn = (scope: any) => { type: 'warning', } ).then(() => { - api.DeletePermission({id: row.id}).then(res => { + api.DeletePermission({id: row.id}).then((res:any) => { buttonPermissionData.value.splice($index, 1) ElMessage({ type: 'success',