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 @@ + + + + +