优化请求,修复加载bug

This commit is contained in:
lyswhut
2019-08-29 13:41:44 +08:00
parent aa973ea984
commit 1786376a9e
16 changed files with 48 additions and 27 deletions
+9
View File
@@ -0,0 +1,9 @@
import { httpFatch } from '../../request'
export default {
getPic({ songmid }) {
const requestObj = httpFatch(`http://artistpicserver.kuwo.cn/pic.web?corp=kuwo&type=rid_pic&pictype=500&size=500&rid=${songmid}`)
requestObj.promise = requestObj.promise.then(({ body }) => body)
return requestObj
},
}