我在关山口开摇摇车 2019-08-28 14:03 采纳率: 50%
浏览 12695

vue使用this.$router.push的时候出现了this.$router.push is not a function,为什么?

vue使用this.$router.push的时候出现了this.$router.push is not a function;
代码

editTax() {
this.$router.push({ path: 'personal/editTax/'+this.request_no, query: { nrfacctnameinfo: this.nrfacctnameinfo } })
},

  • 写回答

5条回答 默认 最新

  • qq_351734088 2019-08-28 19:36
    关注

    this对象有问题,看方法像是绑定的点击事件,这个this是指向点击的元素;

    评论

报告相同问题?