break:移除flask-restful
This commit is contained in:
@@ -130,7 +130,7 @@
|
||||
form.on('submit(power-save)', function (data) {
|
||||
data.field.icon = 'layui-icon ' + data.field.icon
|
||||
$.ajax({
|
||||
url: '/api/v1/rights/power/0',
|
||||
url: '/api/v1/rights/power/',
|
||||
data: JSON.stringify(data.field),
|
||||
dataType: 'json',
|
||||
contentType: 'application/json',
|
||||
|
||||
@@ -61,8 +61,9 @@
|
||||
|
||||
$.ajax({
|
||||
url: '/api/v1/roles/role_power/' + data.field.roleId,
|
||||
data: data.field,
|
||||
data: JSON.stringify(data.field),
|
||||
dataType: 'json',
|
||||
contentType: 'application/json',
|
||||
type: 'put',
|
||||
success: function (result) {
|
||||
if (result.success) {
|
||||
|
||||
Reference in New Issue
Block a user