diff --git a/templates/admin/rights/rights_add.html b/templates/admin/rights/rights_add.html index 3dbbd3830a2dd89cd086e550f28564c75bdfe739..4b7169bcba78a443321442965035d7d6a039c8cf 100644 --- a/templates/admin/rights/rights_add.html +++ b/templates/admin/rights/rights_add.html @@ -130,7 +130,7 @@ form.on('submit(power-save)', function (data) { data.field.icon = 'layui-icon ' + data.field.icon $.ajax({ - url: '/api/v1/rights/rights/0', + url: '/api/v1/rights/power/0', data: JSON.stringify(data.field), dataType: 'json', contentType: 'application/json', diff --git a/templates/admin/rights/rights_edit.html b/templates/admin/rights/rights_edit.html index 5e55d3955d4f08a570bdda6ff7b2682213f9e763..c5b10d547125933b4c0b31737c210e0b78a1be0f 100644 --- a/templates/admin/rights/rights_edit.html +++ b/templates/admin/rights/rights_edit.html @@ -144,7 +144,7 @@ data.field.icon = 'layui-icon ' + data.field.icon console.log(data.field) $.ajax({ - url: '/api/v1/rights/rights/power/' + data.field.powerId, + url: '/api/v1/rights/power/' + data.field.powerId, data: JSON.stringify(data.field), dataType: 'json', contentType: 'application/json',