methods: { back(){ if (window.history.length <= 1) { this.$router.push({path:'/'}) return false } else { this.$router.go(-1) } } },
vue返回上一页面如果没有上一页面返回首页
猜你喜欢
转载自www.cnblogs.com/zhanghailing/p/11994874.html
今日推荐
周排行