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:
parent
1bc2e5c198
commit
d43b55966e
@ -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
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user