【修改】修改传参

This commit is contained in:
zhoulingpo
2023-04-25 14:57:36 +08:00
parent 21f68b0bd8
commit fc43422f22
12 changed files with 157 additions and 88 deletions
+7 -2
View File
@@ -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
} })
}
}
},