back(){
if (window.history.length <= 1) {
this.$router.push({path:'/'})
return false
} else {
this.$router.go(-1)
}
本文标题:vue返回上一页
本文链接:https://www.haomeiwen.com/subject/jtdudqtx.html
网友评论