fixed the sequence of parameter

pull/87/head
Caozhenhui 2021-12-02 10:57:39 +08:00
parent 8dd998ed0c
commit 29f3b91e56
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ app.factory('PrivilegeService', function($http) {
});
},
addPrivilege: function(privilege, headers, callback) {
$http.post(getAPI()+'privileges', {headers}, {data:privilege})
$http.post(getAPI()+'privileges', {data:privilege}, {headers})
.then(function (response) {
callback(response);
}, function (response) {
@ -18,7 +18,7 @@ app.factory('PrivilegeService', function($http) {
});
},
editPrivilege: function(privilege, headers, callback) {
$http.put(getAPI()+'privileges/'+privilege.id, {headers}, {data:privilege})
$http.put(getAPI()+'privileges/'+privilege.id, {data:privilege}, {headers})
.then(function (response) {
callback(response);
}, function (response) {