1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-10 12:01:57 +08:00

#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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
})