diff --git a/src/router/index.js b/src/router/index.js index 2be959d2957..14cfc97ab6a 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -389,6 +389,7 @@ export const asyncRoutes = [ const createRouter = () => new Router({ // mode: 'history', // require service support + // base: process.env.VUE_APP_SRC, // use in hitory mode when publicPath is set scrollBehavior: () => ({ y: 0 }), routes: constantRoutes })