methods: {
back(){
if (window.history.length <= 1) {
this.KaTeX parse error: Expected 'EOF', got '}' at position 66: …se }̲ else { …router.go(-1)
}
}
},
转载自:https://www.cnblogs.com/beileixinqing/archive/2018/09/05/9592313.html
vue返回上一页,如果没有上一页返回首页
猜你喜欢
转载自blog.csdn.net/weixin_43256757/article/details/88966387
今日推荐
周排行