更新依赖到最新

This commit is contained in:
lyswhut
2019-10-05 19:35:44 +08:00
parent b198b1945d
commit 4a510393ab
3 changed files with 275 additions and 120 deletions
+7
View File
@@ -78,6 +78,13 @@ export default {
},
mounted() {
// console.log('mounted')
// 处理搜索源不存在时页面报错的问题
if (!this.sourceList[this.setting.search.searchSource]) {
this.setSearchSource({
searchSource: 'kw',
})
}
this.searchSourceId = this.setting.search.searchSource
if (this.$route.query.text === undefined) {
this.text = this.$store.getters['search/searchText']