boolean | Object
false
This value is set to true
when the project is created, supporting the use of conventional routing provided by Modern.js for routing management.
If you wish to use controlled routing, please remove this value or set it to false
.
All sub-configurations of router
will only take effect when using conventional routing.
string
The basename option specifies the subpath where the app is deployed, for situations where it cannot be deployed to the root domain.
推荐使用 server.baseUrl
进行配置。
boolean
true
If the value of supportHtml5History
is true
, BrowserRouter
would be used, otherwise HashRouter
would be used. BrowserRouter
is recommended.
When SSR is enabled, supportHtml5History
is not supported.