HACKER
TALK
Home
Channels
beta
Bookmarks
Messages
Notifications
Sign In
Comment
yellow star
react/vue 路由history模式刷新页面出现404问题
vue/react hash模式下,URL中存在'',用'history'模式就能解决这个问题。但是history模式会出现刷新页面后,页面出现404。解决的办法是用nginx配置一下。 在ngin
yellow star
yellow star
·3 years ago

如果改不了nginx配置,还是用hash路由,url丑就丑点,能用就行 star

Replies
yellow star
yellow star
Joined 3 years ago
mo.run/xinga
Message
Terms of ServicePrivacy PolicyCookie PolicyMarkdown SyntaxUser PointsUser Feedback© 2025 Shware Inc.