From 93d0e0aafe006def79edc128d0f2bc9b18f14bc7 Mon Sep 17 00:00:00 2001 From: aixianling Date: Tue, 10 May 2022 11:27:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=B7=E6=96=B0=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/router/autoRoutes.js | 2 +- examples/router/router.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/router/autoRoutes.js b/examples/router/autoRoutes.js index 9db0f292..f2202d65 100644 --- a/examples/router/autoRoutes.js +++ b/examples/router/autoRoutes.js @@ -25,7 +25,7 @@ export default { let {name, label} = file.default, addApp = { name: [path.replace(/[.\/]+(project)?[\/]([a-z]+).+/, '$2'), name].join("_"), label: label || name, - path: path.replace(/[.\/]+([a-zA-Z].+\/App[A-Z]\w+)\.vue$/, '/$1'), + path: path.replace(/[.\/]+([a-zA-Z].+\/App[A-Z]\w+)\.vue$/, '/v/$1'), component: appEntry, module: file.default } diff --git a/examples/router/router.js b/examples/router/router.js index 9e83a5d2..83afb3f4 100644 --- a/examples/router/router.js +++ b/examples/router/router.js @@ -7,7 +7,7 @@ Vue.use(VueRouter) export default new VueRouter({ mode: 'history', hashbang: false, - routes: [{path: "/", name: "产品库",component:import('../App')}], + routes: [{path: "/", redirect: "/v", name: "产品库", component: import('../App')}], scrollBehavior(to) { if (to.hash) { return {