Browse Source

fix: 搜索缓存取值问题

cuiyalong 1 year ago
parent
commit
626aa04ab9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/mobile/src/views/search/middle/bidding/index.vue

+ 1 - 1
apps/mobile/src/views/search/middle/bidding/index.vue

@@ -96,7 +96,7 @@ export default {
       }
       }
     },
     },
     getLastFilters() {
     getLastFilters() {
-      const lastFilters = this.$storage.get(BIDDING_SEARCH_LAST_FILTERS_CACHE_KEY, false)
+      const lastFilters = this.$storage.get(BIDDING_SEARCH_LAST_FILTERS_CACHE_KEY, false, { login: true })
       if (lastFilters) {
       if (lastFilters) {
         this.lastFilters = lastFilters
         this.lastFilters = lastFilters
         const card = this.formatFilterItems(lastFilters)
         const card = this.formatFilterItems(lastFilters)