Commit 4bef0bcf authored by zhanglw's avatar zhanglw

个人中心-收藏产品

parent 6a2b5b7d
......@@ -172,6 +172,14 @@ export const constantRouterMap = [
},
hidden: true
},
{
path: '/console/collectPro',
meta: { title: '个人中心-收藏的产品', noCache: true },
component: (resolve) => {
return require(['@/views/homepage/console/collectPro'], resolve)
},
hidden: true
},
{
path: '/backstage',
component: Layout,
......
......@@ -17,7 +17,7 @@ export default {
},
mounted() {
this.$nextTick(() => {
this.currentMenuObj = this.menus[0]
this.currentMenuObj = this.menuIndex > this.menus.length ? { name: '个人中心', url: '/console' } : this.menus[this.menuIndex]
this.$store.dispatch('app/setCurrentMenu', this.currentMenuObj)
})
},
......
......@@ -24,7 +24,7 @@ export default {
},
mounted() {
this.$nextTick(() => {
this.currentMenuObj = this.menus[this.menuIndex]
this.currentMenuObj = this.menuIndex > this.menus.length ? { name: '个人中心', url: '/console' } : this.menus[this.menuIndex]
this.$store.dispatch('app/setCurrentMenu', this.currentMenuObj)
})
},
......
......@@ -11,7 +11,7 @@
<img src="@/assets/home_images/mark_pro.png">
<span>供应</span>
</div>
<div class="vertical-menu-label touch"><span :class="menuIndex==='3'?'active':''" @click="menuClick('/home')">收藏的产品</span></div>
<div class="vertical-menu-label touch"><span :class="menuIndex==='3'?'active':''" @click="menuClick('/console/collectPro')">收藏的产品</span></div>
<div class="vertical-menu-label touch"><span :class="menuIndex==='4'?'active':''" @click="menuClick('/home')">收藏的供应商</span></div>
<div class="vertical-menu-label touch"><span :class="menuIndex==='5'?'active':''" @click="menuClick('/home')">询价记录</span></div>
</div>
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment