【修改】修改传参
This commit is contained in:
@@ -57,6 +57,7 @@ export default {
|
||||
methods: {
|
||||
handleRouter (item) {
|
||||
this.$store.commit('setActiveTabIndex','')
|
||||
console.log("我点击的",item)
|
||||
if (item.belong == 0) {
|
||||
this.$store.commit('saveMenuName', item.label)
|
||||
if (this.$route.path == '/system/401Page') {
|
||||
@@ -78,12 +79,16 @@ export default {
|
||||
})
|
||||
} else {
|
||||
this.$store.commit('saveMenuName', item.label)
|
||||
this.$router.push({ name: 'urlIndex', query: param })
|
||||
this.$router.push({ name: 'urlIndex', query: {
|
||||
id:param.id
|
||||
} })
|
||||
}
|
||||
} else {
|
||||
if (this.$route.path === item.href) return
|
||||
// delete(this.$route.query.itemHref)
|
||||
this.$router.push({ path: item.href, query: this.$route.query })
|
||||
this.$router.push({ path: item.href, query: {
|
||||
id:this.$route.query.id
|
||||
} })
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user