master
fanfan 3 months ago
parent 589cb5b252
commit 771f737618
  1. 3
      pages/search/index.vue

@ -95,7 +95,8 @@
if (uni.getStorageSync('searchList')) {
this.searchList = uni.getStorageSync('searchList')
this.searchList = Array.from(new Set(this.searchList));
this.searchList=this.searchList.length>0?this.searchList.slice(0,6):[]
// this.searchList=this.searchList.length>0?this.searchList.slice(0,6):[],
this.searchList=this.searchList.length>0?this.searchList:[]
}
},

Loading…
Cancel
Save