vue逆向传值

vue
返回上个页面
逆向传值传多个值

传递
        window.location.href=encodeURI('/#/BankCardBind?'+'idCardNos='+ this.idCardNo + '&idNames=' + this.idName)

接收
在  mounted () 函数里面

    var parm = this.$route.query
    console.log('收到的参数')
    console.log(parm)
    this.userName = this.$route.query.idNames
    this.useridcardNo = this.$route.query.idCardNos

你可能感兴趣的:(vue逆向传值)