uniapp package H5 to refresh inner page 404

Due to project requirements, the base path of the operation was changed to a custom folder instead of the default h5, and the problem of refreshing the inner page 404 occurred

Solution: change the routing mode to hash in the h5 configuration in manifest.json

Note: To avoid unnecessary trouble in development mode, it is recommended to change back to history 

Guess you like

Origin blog.csdn.net/starstarstarl/article/details/126364929