修改接口调用

This commit is contained in:
朱进禄 2021-11-02 18:14:17 +08:00
parent 9e8022ea41
commit 712e9a1d0e

View File

@ -268,7 +268,7 @@ export default class Music extends BaseList<MusicPage> {
}
async saveMusicLib(row: MusicModel) {
if (!this.currentRow) return
const data = await this.$http.post<{id: string, libId: string}, any>('/api/music/updateLib', {id: this.currentRow._id, libId: this.currentRow.lib_id})
const data = await this.$http.post<{id: string, libId: string}, any>('/api/v2/music/updateLib', {id: this.currentRow._id, libId: this.currentRow.lib_id})
ElMessage.success(data.message)
row.lib_id = this.currentRow.lib_id
row.isEditing = false