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返回上一页,如果没有上一页返回首页
最新推荐文章于 2024-05-11 00:04:16 发布