修改菜单

master
夜笙歌 1 week ago
parent 614a9228a3
commit a21dcdb648

@ -30,7 +30,8 @@
<div class="subMenuListTitleSpan">{{ ii.configTypeName }}</div>
<i class="el-icon-arrow-down subMenuListTitleIcon1"></i>
</div>
<div class="subMenuListItem" v-for="(iii,kkk) in ii.children" @click="toLink(subMenuPath,iii.configTypeId)">
<div class="subMenuListItem" v-for="(iii,kkk) in ii.children"
@click="toLink(subMenuPath,iii.configTypeId,true)">
<img :src="iii.configTypeIcon" alt=""
style="vertical-align: sub;width: 18px;height: 18px;line-height: 30px;object-fit: contain;margin-right: 6px">
<span>
@ -96,14 +97,17 @@ export default {
console.log(this.$route)
},
methods: {
toLink(e, id) {
toLink(e, id, isDetail) {
console.log(e)
if (!e) return
if (id) {
this.$router.push({path: e + '?id=' + id})
} else {
this.$router.push(e)
let path = e
if (isDetail) {
path = path + '/detail'
}
if (id) {
path = path + '?id=' + id
}
this.$router.push(path)
},
getChildren(e) {
if (e.children) {

@ -22,10 +22,14 @@ export default new Router({
{
path: '/productCenter',
component: () => import('@/views/productCenter.vue'),
}, {
path: '/productCenter/detail', component: () => import('@/views/productInfo.vue'),
},
{
path: '/industryPlan',
component: () => import('@/views/industryPlan.vue'),
}, {
path: '/industryPlan/detail', component: () => import('@/views/productInfo.vue'),
},
{
path: '/serviceSupport',

Loading…
Cancel
Save