vue-router路由動態傳參query和params

1.query方式傳參和接收參數 //路由vue { path: '/detail', //這裏不須要參入參數 name: "detail", component: () => import('@/views/login/index.vue' } 使用: 方法1:web <router-link :to="{ name: 'details', query: { id: 123
相關文章
相關標籤/搜索