文章詳情頁(yè)
javascript - 使用 vuex-router-sync寄存路由信息,this.$router params 不能賦值?
瀏覽:216日期:2023-04-13 15:40:19
問題描述
this.$router.push({ query: { id: record.virtualId }, params: { action: ’view’ }})
希望通過params隱藏式傳遞參數(shù),發(fā)現(xiàn)this.$route.params并沒有生效?
問題解答
回答1:生效的情況通過push name來傳遞,params數(shù)值
標(biāo)簽:
JavaScript
排行榜

熱門標(biāo)簽