更新已收藏的在线列表时,将始终重新加载,不再使用缓存

This commit is contained in:
lyswhut
2022-01-18 15:34:48 +08:00
parent bad2e98757
commit 30d5f53c1d
5 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -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