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 = [];