我有以下网址:http://0.0.0.0:3000/book/all?my_query 怎么滴?“所有my_query”,离开只是“书/”我试图做这样的事情: if (this.$route.params.item === 'all') { this.$router.replace ('/') }
if (this.$route.params.item === 'all') { this.$router.replace ('/') }
但它只是返回主页面
vue.js vue-router
vue-router ×1
vue.js ×1