From 8a7339d2fbc32dda5dd43438187a16d2a54c78bb Mon Sep 17 00:00:00 2001 From: zjb Date: Fri, 5 Jan 2024 00:30:02 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(=E6=A0=87=E7=AD=BE):=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A0=87=E7=AD=BE=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 12 +++ src/utils/validate.js | 2 +- src/views/tag/index.vue | 233 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 246 insertions(+), 1 deletion(-) create mode 100644 src/views/tag/index.vue diff --git a/src/router/index.js b/src/router/index.js index ddf3b9a..6d4a69e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -118,6 +118,18 @@ export const constantRouterMap = [ } ] }, + { + path: '/tag', + component: Layout, + children: [ + { + path: 'index', + name: 'Form', + component: () => import('@/views/tag/index'), + meta: { title: '标签管理', icon: 'form' } + } + ] + }, { path: '*', redirect: '/404', hidden: true } ] diff --git a/src/utils/validate.js b/src/utils/validate.js index 834a8dd..b8c17ba 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -3,7 +3,7 @@ */ export function isvalidUsername(str) { - const valid_map = ['admin', 'editor'] + const valid_map = ['admin', 'editor', 'test'] return valid_map.indexOf(str.trim()) >= 0 } diff --git a/src/views/tag/index.vue b/src/views/tag/index.vue new file mode 100644 index 0000000..4fce25e --- /dev/null +++ b/src/views/tag/index.vue @@ -0,0 +1,233 @@ + + + + +