#3289 add base path to match publicPath

fixes breaking to 404 page in history mode when publicPath sub path is set
This commit is contained in:
D See Ker
2020-11-08 22:41:30 +00:00
committed by GitHub
parent 1bc2e5c198
commit d43b55966e

View File

@@ -389,6 +389,7 @@ export const asyncRoutes = [
const createRouter = () => new Router({
// mode: 'history', // require service support
// base: process.env.VUE_APP_SRC, // public
scrollBehavior: () => ({ y: 0 }),
routes: constantRoutes
})