@@ -99,7 +99,7 @@ export default {
},
mounted() {
- this.historyList = JSON.parse(localStorage.getItem('hotspot-search-history'))
+ this.historyList = JSON.parse(localStorage.getItem('hotspot-search-history')) || []
this.onClickSearch()
destroyed() {