跳转到下一页 =======html <van-cell :title="$t('mine.feedback')" icon="comment-circle" is-link @click="goToPage('fankui')"/> =======JS export default { data() { return{ methods: { //不带参数的 goToPage(name) { // alert("1"); this.$router.push({name}); }, //或者 onAddress(){ this.$router.push({name:'myAddress'}); }, //带有参数的 //获取商品详情 goToDetail(sid) { //alert("aaa"); this.$router.push({ name: "goodsDetail", params: { id: sid } }); }, //返回上一页 onClick() { this.$router.go(-1);
//或者
this.$router.back(); }, } } } }