Fix removing items from closet

This commit is contained in:
printempw 2017-08-06 22:40:30 +08:00
parent 86c5343c55
commit efb7cf07e5

View File

@ -170,7 +170,7 @@ function renameClosetItem(tid, oldName) {
})) }))
}).then(name => fetch({ }).then(name => fetch({
type: 'POST', type: 'POST',
url: url('closet/rename'), url: url('user/closet/rename'),
dataType: 'json', dataType: 'json',
data: { tid: tid, new_name: name } data: { tid: tid, new_name: name }
})).then(({ errno, msg }) => { })).then(({ errno, msg }) => {
@ -190,7 +190,7 @@ function removeFromCloset(tid) {
showCancelButton: true showCancelButton: true
}).then(() => fetch({ }).then(() => fetch({
type: 'POST', type: 'POST',
url: url('closet/remove'), url: url('user/closet/remove'),
dataType: 'json', dataType: 'json',
data: { tid: tid } data: { tid: tid }
})).then(({ errno, msg }) => { })).then(({ errno, msg }) => {