Vue.js Vue-未显示URL查询参数

Vue.js Vue-未显示URL查询参数,vue.js,vuex,vue-router,Vue.js,Vuex,Vue Router,我正在使用Vue routerhash模式添加查询参数。 配置/ 这在我的本地电脑上很管用。 http://localhost:5000/#/confirmation?type=payment 在制作过程中,我在网站上加载了编译后的Vue脚本作为前端应用程序。 <script type="text/javascript" async="" src="https://[project].herokuapp.com/booking/assets/booking.js?"></scr

我正在使用Vue router
hash
模式添加查询参数。 配置/

这在我的本地电脑上很管用。
http://localhost:5000/#/confirmation?type=payment

在制作过程中,我在网站上加载了编译后的Vue脚本作为前端应用程序。

<script type="text/javascript" async="" src="https://[project].herokuapp.com/booking/assets/booking.js?"></script>
预期的
https://site/pages/booking/#/confirmation?type=payment


有人有想法吗?

制作URL准确吗?因为它在#之前没有a/。可能只是抄错了,但我想确认一下。@JoshuaK98,是的。这是错误的。更新了。哪里有错误吗?@JoshuaK98刚刚更新了帖子。非常感谢。如果它在您的本地环境中工作,但在生产环境中不工作,那么很可能是您的生产构建存在某种配置问题,或者可能是缩小的JS中存在一个在非缩小的JS中不存在的bug。如果可能的话,尝试在本地环境中使用生产构建,看看是否可以重现该问题。这会帮助你缩小问题的范围。
<script type="text/javascript" async="" src="https://[project].herokuapp.com/booking/assets/booking.js?"></script>
https://[site]/pages/booking/#/confirmation