更新已收藏的在线列表时,将始终重新加载,不再使用缓存
This commit is contained in:
@@ -211,7 +211,7 @@ export default {
|
||||
async addSongListDetail({ boardId, boardName, source, id }) {
|
||||
// console.log(this.listDetail.info)
|
||||
// if (!this.listDetail.info.name) return
|
||||
const list = await this.getListAll(boardId)
|
||||
const list = await this.getListAll({ id: boardId })
|
||||
this.createUserList({
|
||||
name: boardName,
|
||||
id,
|
||||
@@ -230,7 +230,7 @@ export default {
|
||||
})
|
||||
isPlayingList = true
|
||||
}
|
||||
const fullList = await this.getListAll(boardId)
|
||||
const fullList = await this.getListAll({ id: boardId })
|
||||
if (!fullList.length) return
|
||||
if (isPlayingList) {
|
||||
if (tempList.meta.id == id) {
|
||||
|
||||
@@ -339,9 +339,9 @@ export default {
|
||||
let promise
|
||||
if (/board__/.test(sourceListId)) {
|
||||
const id = sourceListId.replace(/board__/, '')
|
||||
promise = this.getBoardListAll(id)
|
||||
promise = this.getBoardListAll({ id, isRefresh: true })
|
||||
} else {
|
||||
promise = this.getListDetailAll({ source, id: sourceListId })
|
||||
promise = this.getListDetailAll({ source, id: sourceListId, isRefresh: true })
|
||||
}
|
||||
return promise.finally(() => {
|
||||
this.fetchingListStatus[id] = false
|
||||
|
||||
Reference in New Issue
Block a user