feat: updates

This commit is contained in:
qier222 2022-08-03 23:48:39 +08:00
parent 47e41dea9b
commit ebebf2a733
No known key found for this signature in database
GPG key ID: 9C85007ED905F14D
160 changed files with 4148 additions and 2001 deletions

View file

@ -8,15 +8,15 @@ import {
// 专辑详情
export function fetchAlbum(
params: FetchAlbumParams,
noCache: boolean
params: FetchAlbumParams
): Promise<FetchAlbumResponse> {
const otherParams: { timestamp?: number } = {}
if (noCache) otherParams.timestamp = new Date().getTime()
return request({
url: '/album',
method: 'get',
params: { ...params, ...otherParams },
params: {
...params,
timestamp: new Date().getTime(),
},
})
}