From 556eb3e45b03a491bc6783defb529fcf16d1f7b6 Mon Sep 17 00:00:00 2001 From: sunnie <406803045@qq.com> Date: Mon, 1 Jun 2020 18:39:35 +0800 Subject: [PATCH] =?UTF-8?q?router=E9=BB=98=E8=AE=A4hash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 })