修改接口调用
This commit is contained in:
parent
9e8022ea41
commit
712e9a1d0e
@ -268,7 +268,7 @@ export default class Music extends BaseList<MusicPage> {
|
|||||||
}
|
}
|
||||||
async saveMusicLib(row: MusicModel) {
|
async saveMusicLib(row: MusicModel) {
|
||||||
if (!this.currentRow) return
|
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)
|
ElMessage.success(data.message)
|
||||||
row.lib_id = this.currentRow.lib_id
|
row.lib_id = this.currentRow.lib_id
|
||||||
row.isEditing = false
|
row.isEditing = false
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user