From ab949fb6a8da282f964570f87080dc22aa2c7e9c Mon Sep 17 00:00:00 2001
From: wanchun <445436867@qq.com>
Date: Wed, 5 Jan 2022 16:38:02 +0800
Subject: [PATCH] =?UTF-8?q?feat(plugin-layout):=20=E8=8F=9C=E5=8D=95?=
=?UTF-8?q?=E6=94=AF=E6=8C=81=E9=85=8D=E7=BD=AE=E9=A2=9D=E5=A4=96=E7=9A=84?=
=?UTF-8?q?=E5=8C=B9=E9=85=8D=E8=A7=84=E5=88=99?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
packages/fes-template/.fes.js | 5 ++--
packages/fes-template/src/pages/route/@id.vue | 23 +++++++++++++++++++
2 files changed, 26 insertions(+), 2 deletions(-)
create mode 100644 packages/fes-template/src/pages/route/@id.vue
diff --git a/packages/fes-template/.fes.js b/packages/fes-template/.fes.js
index 5f4f505b..cd2ca5f8 100644
--- a/packages/fes-template/.fes.js
+++ b/packages/fes-template/.fes.js
@@ -10,7 +10,7 @@ export default {
title: '海贼王'
},
router: {
- mode: 'history'
+ mode: 'hash'
},
access: {
roles: {
@@ -39,7 +39,8 @@ export default {
menus: [
{
name: 'index',
- icon: '/wine-outline.svg'
+ icon: '/wine-outline.svg',
+ match: ['/route/*']
},
{
name: 'store'
diff --git a/packages/fes-template/src/pages/route/@id.vue b/packages/fes-template/src/pages/route/@id.vue
new file mode 100644
index 00000000..0bb17929
--- /dev/null
+++ b/packages/fes-template/src/pages/route/@id.vue
@@ -0,0 +1,23 @@
+
+
+ {{params.id}}
+
+
+
+{
+ "name": "activeRoute",
+ "title": "动态路由"
+}
+
+