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