methods: {

        back(){

            if (window.history.length <= 1) {

                this.$router.push({path:'/'})

                return false

            } else {

                this.$router.go(-1)

            }

        }

    },

 

posted on 2019-12-06 14:04  效率的九尾  阅读(1105)  评论(0编辑  收藏  举报