修改接口调用

This commit is contained in:
灌糖包子 2022-02-02 03:18:00 +08:00
parent e5947754ea
commit d4c499827f
2 changed files with 3 additions and 3 deletions

View File

@ -216,8 +216,8 @@ export default class Music extends BaseList<MusicPage> {
name: item.title || item.name, name: item.title || item.name,
artist: item.artist, artist: item.artist,
url: `/api/v2/getMusic/${item._id}`, url: `/api/v2/getMusic/${item._id}`,
cover: `/api/common/music/album/${item._id}`, cover: `/api/v1/common/music/album/${item._id}`,
lrc: item.lyric_id ? `/api/common/music/lyric/${item.lyric_id}` : undefined lrc: item.lyric_id ? `/api/v1/common/music/lyric/${item.lyric_id}` : undefined
} }
}) })
// ( ) // ( )

View File

@ -151,7 +151,7 @@ export default class SourceImage extends BaseList<Page> {
preview(row: SourceImageModel): void { preview(row: SourceImageModel): void {
ElMessageBox({ ElMessageBox({
title: '图片预览', title: '图片预览',
message: h('img', { style: `width:500px`, src: `/api/common/randomBg?id=${row._id}` }, ''), message: h('img', { style: `width:500px`, src: `/api/v1/common/randomBg?id=${row._id}` }, ''),
showCancelButton: false, showCancelButton: false,
confirmButtonText: '关闭', confirmButtonText: '关闭',
customStyle: {width: '530px'} customStyle: {width: '530px'}