Commit 23959af3 by xuyl

修复404bug

1 parent 0430ac9a
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
crowdDesc: '' crowdDesc: ''
}, },
crowdId: this.$route.params.id ? this.$route.params.id : '', crowdId: this.$route.params.id ? this.$route.params.id : '',
crowdPage: this.$route.params.crowdType ? this.$route.params.crowdType : '', crowdPage: this.$route.query.crowdType ? this.$route.query.crowdType : '',
tableTotal: '', tableTotal: '',
isShowCloseBtn: true, isShowCloseBtn: true,
dialogRuleVisible: false, dialogRuleVisible: false,
...@@ -152,7 +152,7 @@ export default { ...@@ -152,7 +152,7 @@ export default {
this.getCrowdDetails() this.getCrowdDetails()
}, },
mounted() { mounted() {
console.log(this.$route.params) console.log(this.$route.query.crowdPage)
}, },
methods: { methods: {
goBack() { goBack() {
......
...@@ -107,18 +107,18 @@ export default { ...@@ -107,18 +107,18 @@ export default {
// this.activeName = 'second' // this.activeName = 'second'
// // window.history.pushState(null, null, location.origin + location.pathname) // // window.history.pushState(null, null, location.origin + location.pathname)
// } // }
// console.log(this.$route.query)
if (this.$route.query.selectTab) { if (this.$route.query.selectTab) {
this.$route.query.selectTab == 1 ? (this.activeName = 'first') : (this.activeName = 'second') this.$route.query.selectTab == 1 ? (this.activeName = 'first') : (this.activeName = 'second')
} }
}, },
mounted() { mounted() {
console.log(this.$route.params)
}, },
methods: { methods: {
btnClick(type, data) { btnClick(type, data) {
const crowdType = this.activeName == 'first' ? 1 : 2 const crowdType = this.activeName == 'first' ? 1 : 2
if (type == 'detail') { if (type == 'detail') {
this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}?crowdType`) this.$router.push(`/crowdManage/crowdDetail/${data.crowdId}?crowdType=${crowdType}`)
} }
if (type == 'view') { if (type == 'view') {
this.$router.push(`/clientDataOverview/group/${data.crowdId}/${crowdType}`) this.$router.push(`/clientDataOverview/group/${data.crowdId}/${crowdType}`)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!