@click="aHref(index,$event)"
aHref: function(url,event){
this.$router.push(url);
$(event.currentTarget).addClass('on');
$(event.currentTarget).parent().siblings('li').children('a').removeClass('on');
},
@click="aHref(index,$event)"
aHref: function(url,event){
this.$router.push(url);
$(event.currentTarget).addClass('on');
$(event.currentTarget).parent().siblings('li').children('a').removeClass('on');
},
转载于:https://www.cnblogs.com/hellman/p/7155100.html