File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ export default {
7171 const confirmEdit = async () => {
7272 let addRes = 0
7373 let delRes = 0
74+ const groupId = parseInt (route .query .id , 10 )
7475 // 判断是否更改了分组权限
7576 if (permissions .value .sort ().toString () !== cachePermissions .value .sort ().toString ()) {
7677 const deletePermissions = cachePermissions .value
@@ -81,10 +82,10 @@ export default {
8182 .filter (v => ! cachePermissions .value .includes (v))
8283
8384 if (addPermissions .length > 0 ) {
84- addRes = await AdminModel .dispatchPermissions (route . query . id , addPermissions)
85+ addRes = await AdminModel .dispatchPermissions (groupId , addPermissions)
8586 }
8687 if (deletePermissions .length > 0 ) {
87- delRes = await AdminModel .removePermissions (route . query . id , deletePermissions)
88+ delRes = await AdminModel .removePermissions (groupId , deletePermissions)
8889 }
8990 if (addRes .code < window .MAX_SUCCESS_CODE || delRes .code < window .MAX_SUCCESS_CODE ) {
9091 ElMessage .success (' 权限修改成功' )
You can’t perform that action at this time.
0 commit comments