接口地址修改
This commit is contained in:
parent
ba6626bff0
commit
35fdfa18bb
@ -117,7 +117,7 @@
|
||||
<el-form-item >
|
||||
<el-upload
|
||||
ref="musicUpload"
|
||||
action="/api/v2/upload/music"
|
||||
action="/api/v2/music/upload"
|
||||
name="file"
|
||||
accept=".mp3,.flac"
|
||||
:headers="{token: $store.state.loginInfo.token}"
|
||||
@ -237,7 +237,7 @@ export default class Music extends BaseList<MusicPage> {
|
||||
}
|
||||
remove(row: MusicModel) {
|
||||
ElMessageBox.confirm(`是否确认删除 ${row.name} ?`, '确认删除', {type: 'warning'}).then(async () => {
|
||||
const data = await this.$http.delete<{params: {id: string}}, any>('/api/music/delete', {params: {id: row._id}})
|
||||
const data = await this.$http.delete<{params: {id: string}}, any>('/api/v2/music/delete', {params: {id: row._id}})
|
||||
if(data.status) {
|
||||
ElMessage.success(data.message)
|
||||
this.loadData()
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
</el-form>
|
||||
<div class="btn-container">
|
||||
<el-upload
|
||||
action="/api/v2/upload/photoWall"
|
||||
action="/api/v2/photoWall/upload"
|
||||
accept="image/jpeg,image/png"
|
||||
name="image"
|
||||
:headers="{token: $store.state.loginInfo.token}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user