From 6ffe61562b4689ca88fa2c95f4ab62635a8e8227 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sun, 21 Feb 2021 15:46:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=87=AA=E5=8A=A8=E6=8D=A2?= =?UTF-8?q?=E6=BA=90=E6=B8=85=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/store/modules/list.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/renderer/store/modules/list.js b/src/renderer/store/modules/list.js index 10af48b6..6dc9b97f 100644 --- a/src/renderer/store/modules/list.js +++ b/src/renderer/store/modules/list.js @@ -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 },