1. 第一次进入商品列表,商品分类未展示

2. 链接选择器,店铺开启状态展示错误
3. 从新装修楼层,楼层bug修改
4. 搜索热词为空是返回null,导致报错
5. 首页全部商品分类缓存问题
6. 修改菜单项缓存、添加设置
7. 店铺分类二级分类修改时无父级分类
This commit is contained in:
mabo
2021-08-04 17:07:39 +08:00
parent 483d8c3aef
commit 726ae1f856
15 changed files with 1383 additions and 486 deletions

View File

@@ -82,13 +82,17 @@ export default {
},
computed: {
promotionTags () {
return JSON.parse(this.$store.state.hotWordsList)
if (this.$store.state.hotWordsList) {
return JSON.parse(this.$store.state.hotWordsList)
} else {
return []
}
}
},
created () {
this.searchData = this.$route.query.keyword
if (!this.hover) { // 首页顶部固定搜索栏不调用热词接口
// 搜索热词每一小时请求一次
// 搜索热词每5分钟请求一次
const reloadTime = storage.getItem('hotWordsReloadTime')
const time = new Date().getTime() - 5 * 60 * 1000
if (!reloadTime) {