@ -8,9 +8,9 @@ export function add(asset) {
})
}
export function edit(asset) {
export function edit(id, asset) {
return request({
url: '/asset/staff/edit',
url: `/asset/staff/edit/${id}`,
method: 'post',
data: asset
@ -227,7 +227,7 @@ export default {
this.addVisible = false
if (this.editVisible) {
edit(this.form).then(response => {
edit(this.form.id, this.form).then(response => {
console.log(response)
this.editVisible = false