更新electron到 10.1.0

This commit is contained in:
lyswhut
2020-08-29 14:44:37 +08:00
parent b453a8934f
commit 86478c0268
21 changed files with 228 additions and 157 deletions
+4 -11
View File
@@ -1,15 +1,5 @@
import Store from 'electron-store'
import music from '../../utils/music'
const electronStore_data = window.electronStore_data = new Store({
name: 'data',
})
let historyList = electronStore_data.get('searchHistoryList')
if (historyList == null) {
historyList = []
electronStore_data.set('searchHistoryList', historyList)
}
const sources = []
const sourceList = {}
const sourceMaxPage = {}
@@ -103,7 +93,7 @@ const state = {
allPage: 1,
total: 0,
sourceMaxPage,
historyList,
historyList: [],
}
// getters
@@ -211,6 +201,9 @@ const mutations = {
clearHistory(state) {
state.historyList = []
},
setHistory(state, list) {
state.historyList = list
},
}
export default {