From 87f390f5542c1650effe65626c1e7a60e6fb0091 Mon Sep 17 00:00:00 2001 From: roger Date: Mon, 20 Mar 2023 10:42:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E7=94=B1=E7=9A=84hash=E5=92=8Chistory?= =?UTF-8?q?=E5=B7=A5=E4=BD=9C=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 20_脚手架/vue_code/src/router/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/20_脚手架/vue_code/src/router/index.js b/20_脚手架/vue_code/src/router/index.js index 377bee1..4efbdda 100644 --- a/20_脚手架/vue_code/src/router/index.js +++ b/20_脚手架/vue_code/src/router/index.js @@ -9,6 +9,7 @@ import Detail from "@/pages/Detail.vue"; // 创建一个路由器 const router = new VueRouter({ + mode: 'history', // 分为hash模式和history模式 routes: [ { name: 'guanyu',