feat: add pre-commit

This commit is contained in:
xiaoxian521
2021-06-09 13:11:01 +08:00
parent ef2aa27a87
commit 515be309b8
5 changed files with 368 additions and 234 deletions

View File

@@ -21,20 +21,20 @@ const remainingRouter = [
rank: 102,
},
},
{
// 找不到路由重定向到404页面
path: "/:pathMatch(.*)",
name: "pathMatch",
component: Layout,
redirect: "/error/404",
meta: {
icon: "el-icon-s-home",
title: "message.hshome",
showLink: false,
savedPosition: false,
rank: 103,
},
},
// {
// // 找不到路由重定向到404页面
// path: "/:pathMatch(.*)",
// name: "pathMatch",
// component: Layout,
// redirect: "/error/404",
// meta: {
// icon: "el-icon-s-home",
// title: "message.hshome",
// showLink: false,
// savedPosition: false,
// rank: 103,
// },
// },
{
path: "/redirect",
name: "redirect",