移除自动换源清理

pull/459/head
lyswhut 2021-02-21 15:46:19 +08:00
parent b5f5e13f22
commit 6ffe61562b
1 changed files with 0 additions and 14 deletions

View File

@ -64,20 +64,6 @@ const mutations = {
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 (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)
state.isInitedList = true
},