修改接口调用
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user