loki vor 3 Jahren
Ursprung
Commit
9f645732e0

+ 4 - 1
src/api/system/account.js

@@ -25,7 +25,10 @@ export const getUserRole = ({ id, ...params }) =>
   api.get(`/yxl-back-end/framework/uiac/account/${id}/account-role`, params);
 
 export const updateUserRole = ({ id, ...params }) =>
-  api.put(`/yxl-back-end/framework/uiac/account/${id}/account-role`, params);
+  api.put(
+    `/yxl-back-end/framework/uiac/account/${id}/account-role`,
+    params.roles
+  );
 
 export const lockAccount = id =>
   api.del(`/yxl-back-end/framework/uiac/account/is-locked/${id}`, {});

+ 1 - 1
src/views/systemManagement/accountManagement/modal/RoleModal.vue

@@ -77,7 +77,7 @@ export default {
         id: this.id
       });
       if (success) {
-        this.form = data;
+        this.form.roles = data;
       }
     },