|
@@ -36,10 +36,14 @@ export default {
|
|
watch: {
|
|
watch: {
|
|
'$route.name': {
|
|
'$route.name': {
|
|
handler: function (newVal) {
|
|
handler: function (newVal) {
|
|
- this.active = newVal
|
|
|
|
if (!newVal) {
|
|
if (!newVal) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
+ if (['MarketingReturn', 'MarketingMake'].findIndex(item => item === newVal) > -1) {
|
|
|
|
+ this.active = 'MarketingSave'
|
|
|
|
+ } else {
|
|
|
|
+ this.active = newVal
|
|
|
|
+ }
|
|
// 为中转页的时候不调用
|
|
// 为中转页的时候不调用
|
|
if (!this.$store.getters['common/isInit'] && newVal !== 'PaymentCode' && newVal !== 'ShareMiddle') {
|
|
if (!this.$store.getters['common/isInit'] && newVal !== 'PaymentCode' && newVal !== 'ShareMiddle') {
|
|
this.$store.dispatch('common/getUserInfo')
|
|
this.$store.dispatch('common/getUserInfo')
|