路由
<p><strong>路由传参 query</strong></p>
<pre><code class="language-javascript">import { useRouter } from &quot;vue-router&quot;
const router = useRouter()
function rowClick(row) {
router.push({ name: 'userform', query: { id: row.id } })
}</code></pre>
<pre><code class="language-javascript">import { useRoute } from &quot;vue-router&quot;
const route = useRoute()
route.query.id // 可以获取</code></pre>