From 1cf46a7dbab22660dcea7f64b34dcbd2fafa146a Mon Sep 17 00:00:00 2001
From: wangmeng <1620161711@qq.com>
Date: Mon, 5 Jan 2026 15:37:55 +0800
Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E6=88=90=E5=8D=95=E8=A1=8C=E8=BF=9B?=
=?UTF-8?q?=E8=A1=8C=E6=9D=83=E9=99=90=E6=8E=A7=E5=88=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/authority/role.vue | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/src/views/authority/role.vue b/src/views/authority/role.vue
index 9aaf272..aa309d9 100644
--- a/src/views/authority/role.vue
+++ b/src/views/authority/role.vue
@@ -29,14 +29,14 @@
@click="handleDelete"
>删 除
-->
- 权限设置
-
+ -->
{
+ // 直接用当前角色ID提交,而不是数组
+ grant([this.currentRoleId], menuList, dataScopeList, apiScopeList).then(() => {
this.box = false;
this.$message({
type: "success",
@@ -444,6 +448,7 @@ export default {
});
},
handleRowRole(row) {
+ this.currentRoleId = row.id; // 保存当前行角色ID
this.menuTreeObj = [];
this.dataScopeTreeObj = [];
this.apiScopeTreeObj = [];