diff --git a/src/router/index.js b/src/router/index.js index f558712..12a84e3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -13,8 +13,8 @@ Vue.use(Router) const createRouter = () => new Router({ - mode: 'history', - base: process.env.BASE_URL, + // mode: 'history', // 如果你是 history模式 需要配置vue.config.js publicPath + // base: process.env.BASE_URL, scrollBehavior: () => ({ y: 0 }), routes: constantRouterMap })