a1300399510@qq.com 提交于 2023/04/06 -17:00:02
This commit is contained in:
parent
de246b5b32
commit
b5ea5a0bf0
@ -12,9 +12,9 @@ export default new Vuex.Store({
|
||||
mutations: {
|
||||
setHistoricalSearch(state, payload) {
|
||||
console.log(payload, "payload");
|
||||
payload = [...new Set(payload)]
|
||||
// payload = [...new Set(payload)]
|
||||
state.historicalSearch = payload
|
||||
localStorage.setItem('historicalSearch', JSON.stringify(payload));
|
||||
// localStorage.setItem('historicalSearch', JSON.stringify(payload));
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
@ -87,7 +87,10 @@ export default {
|
||||
this.kw = this.$route.query.kw
|
||||
this.getSearchResult()
|
||||
console.log(this.historicalSearch, "historicalSearch");
|
||||
window.addEventListener("visibilitychange", () => {
|
||||
|
||||
console.log("fkjflkdfj");
|
||||
})
|
||||
},
|
||||
|
||||
watch: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user