From d90082aa64659d7fa009a0177466a3a8b2c6f98a Mon Sep 17 00:00:00 2001 From: douzhuo <17611323298@163.com> Date: Mon, 18 Jul 2022 18:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=97=A5=E6=8A=A5=E5=91=A8?= =?UTF-8?q?=E6=8A=A5=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/admin/role/index.vue | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/views/admin/role/index.vue b/src/views/admin/role/index.vue index 41e274d..cc44fc7 100644 --- a/src/views/admin/role/index.vue +++ b/src/views/admin/role/index.vue @@ -467,19 +467,18 @@ export default { // 确认添加 addPush() { - if (this.checkList.length == 0) { - this.$message.info("请选择需要推送的权限"); - return; - } + console.log(this.checkList) if (this.checkList.length > 0) { this.form.messageType = this.checkList.join(","); + } else { + this.form.messageType = '' } - putObj(this.form).then((res) => { console.log(res); this.cancelAddPush(); - if (res.data) { + if (res.code == 0) { this.$message.success("编辑成功"); + this.findMyOrg(); } else { this.$message.error(res.msg); }