Vue-router refresh could not find the page

assetsPublicPath: / test/, is configured when packaging because the project is deployed under the test directory in the root folder, and the routing configuration uses require.ensure, plus base: test, but it will be blank when the page is refreshed. Thank you

Sep.01,2021

check your link address. This contains multiple local problems, as well as whether your route uses model:history mode
. I don't know exactly. I'll show you the configuration on my side
routing configuration

webpack

config

config

.
Menu