完善翻译

This commit is contained in:
lyswhut
2020-03-12 21:12:12 +08:00
parent dd41e00691
commit 3fdff4e6eb
12 changed files with 57 additions and 43 deletions
+3 -1
View File
@@ -35,7 +35,9 @@ const state = {
// getters
const getters = {
sources: () => sources,
sources(state, getters, rootState, { sourceNames }) {
return sources.map(item => ({ id: item.id, name: sourceNames[item.id] }))
},
sourceList: state => state.sourceList || [],
searchText: state => state.text,
allList: state => ({ list: state.list, allPage: state.allPage, page: state.page, total: state.total, limit: state.limit, sourceMaxPage: state.sourceMaxPage }),