Home  >  Q&A  >  body text

javascript - Using vuex-router-sync to store routing information, this.$router params cannot be assigned a value?

this.$router.push({
  query: {
    id: record.virtualId
  },
  params: {
    action: 'view'
  }
})

I hope to pass parameters hiddenly through params, but find that this.$route.params does not take effect?

代言代言2663 days ago1010

reply all(1)I'll reply

  • 我想大声告诉你

    我想大声告诉你2017-07-05 10:38:37

    The effective situation is passed through push name and params value

    reply
    0
  • Cancelreply