老司机mpa1的路由不支持history模式?? #3
Closed
Labels
Comments
已增加分支 mpa1-history-mode-router 关键配置: // dev.js
historyApiFallback: {
rewrites: [
{ from: /^\/web/, to: '/web/index.html' },
{ from: /^\/admin/, to: '/admin/index.html' }
]
} // web/router.js
{
base: process.env.NODE_ENV === "production" ? '/' : '/web/',
mode: 'history',
} // admin/router.js
{
base: process.env.NODE_ENV === "production" ? '/' : '/admin/',
mode: 'history',
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://localhost:8080/web.html#/css
需要支持history模式怎么解决?
The text was updated successfully, but these errors were encountered: