美文网首页
vue返回上一页

vue返回上一页

作者: LJun_8251 | 来源:发表于2019-01-15 20:46 被阅读0次

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