移除自动换源清理
parent
b5f5e13f22
commit
6ffe61562b
|
@ -64,20 +64,6 @@ const mutations = {
|
||||||
if (defaultList != null) Object.assign(state.defaultList, { list: defaultList.list, location: defaultList.location })
|
if (defaultList != null) Object.assign(state.defaultList, { list: defaultList.list, location: defaultList.location })
|
||||||
if (loveList != null) Object.assign(state.loveList, { list: loveList.list, location: loveList.location })
|
if (loveList != null) Object.assign(state.loveList, { list: loveList.list, location: loveList.location })
|
||||||
if (userList != null) state.userList = userList
|
if (userList != null) state.userList = userList
|
||||||
if (window.localStorage.getItem('isResetOtherSource') != '1') {
|
|
||||||
for (const item of defaultList.list) {
|
|
||||||
if (item.otherSource) item.otherSource = null
|
|
||||||
}
|
|
||||||
for (const item of loveList.list) {
|
|
||||||
if (item.otherSource) item.otherSource = null
|
|
||||||
}
|
|
||||||
for (const list of userList) {
|
|
||||||
for (const item of list.list) {
|
|
||||||
if (item.otherSource) item.otherSource = null
|
|
||||||
}
|
|
||||||
}
|
|
||||||
window.localStorage.setItem('isResetOtherSource', '1')
|
|
||||||
}
|
|
||||||
allListInit(state.defaultList, state.loveList, state.userList)
|
allListInit(state.defaultList, state.loveList, state.userList)
|
||||||
state.isInitedList = true
|
state.isInitedList = true
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue