scene:
a----------->c Click to return, hope to return to a
b------------>c Click to return, hope to return to b
Solution:
Page a, add from field
('table-view', function(msg, args) { var rowData = args[0], rowIndex = args[1]; //Jump the details page this.$({ name: 'viewAdvertiseDetails', query: { id: this.$, adsenseCampaignId: , from: 'viewAdvertise', }, }) }.bind(this));
Page b, add from field
('table-view', function(msg, args) { var rowData = args[0], rowIndex = args[1]; this.$({ name: 'viewAdvertiseDetails', query: { id: this.$, adsenseCampaignId: , from: 'setAdvertise', }, }) }.bind(this));
Page c:
back: function() { if(this.$==='viewAdvertise'){ this.$({ name: 'viewAdvertise', query: { id: this.$ }, }) }else if(this.$==='setAdvertise'){ this.$({ name: 'setAdvertise', query: { id: this.$ }, }) } }
The above method of returning vue from the route you entered is all the content I share with you. I hope you can give you a reference and I hope you can support me more.