Skip to content

Commit

Permalink
feat(projects): 细节完善、迁移页面
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Jan 20, 2022
1 parent 28efbdb commit ce531ce
Show file tree
Hide file tree
Showing 26 changed files with 1,116 additions and 227 deletions.
106 changes: 106 additions & 0 deletions mock/api/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,58 @@ const routes: AuthRoute.Route[] = [
order: 1
}
},
{
name: 'document',
path: '/document',
component: 'basic',
children: [
{
name: 'document_vue',
path: '/document/vue',
component: 'self',
meta: {
title: 'vue文档'
}
},
{
name: 'document_vue-new',
path: '/document/vue-new',
component: 'self',
meta: {
title: 'vue文档(新版)'
}
},
{
name: 'document_vite',
path: '/document/vite',
component: 'self',
meta: {
title: 'vite文档'
}
},
{
name: 'document_naive',
path: '/document/naive',
component: 'self',
meta: {
title: 'naive文档'
}
},
{
name: 'document_project',
path: '/document/project',
meta: {
title: '项目文档(外链)',
href: 'https://docs.soybean.pro/'
}
}
],
meta: {
title: '文档',
icon: 'carbon:document',
order: 2
}
},
{
name: 'about',
path: '/about',
Expand All @@ -43,6 +95,42 @@ const routes: AuthRoute.Route[] = [
order: 7
}
},
{
name: 'exception',
path: '/exception',
component: 'basic',
children: [
{
name: 'exception_403',
path: '/exception/403',
component: 'self',
meta: {
title: '异常页403'
}
},
{
name: 'exception_404',
path: '/exception/404',
component: 'self',
meta: {
title: '异常页404'
}
},
{
name: 'exception_500',
path: '/exception/500',
component: 'self',
meta: {
title: '异常页500'
}
}
],
meta: {
title: '异常页',
icon: 'ant-design:exception-outlined',
order: 5
}
},
{
name: 'multi-menu',
path: '/multi-menu',
Expand All @@ -60,6 +148,24 @@ const routes: AuthRoute.Route[] = [
meta: {
title: '二级菜单'
}
},
{
name: 'multi-menu_first_second-new',
path: '/multi-menu/first/second-new',
component: 'multi',
children: [
{
name: 'multi-menu_first_second-new_third',
path: '/multi-menu/first/second-new/third',
component: 'self',
meta: {
title: '三级菜单'
}
}
],
meta: {
title: '二级菜单(有子菜单)'
}
}
],
meta: {
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@
"vue-router": "^4.0.12"
},
"devDependencies": {
"@commitlint/cli": "^16.0.2",
"@commitlint/cli": "^16.0.3",
"@commitlint/config-conventional": "^16.0.0",
"@iconify/json": "^1.1.457",
"@iconify/json": "^1.1.458",
"@iconify/vue": "^3.1.2",
"@types/crypto-js": "^4.1.0",
"@types/node": "^17.0.9",
"@types/node": "^17.0.10",
"@types/qs": "^6.9.7",
"@typescript-eslint/eslint-plugin": "^5.10.0",
"@typescript-eslint/parser": "^5.10.0",
Expand All @@ -62,21 +62,21 @@
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.3.0",
"husky": "^7.0.4",
"lint-staged": "^12.1.7",
"lint-staged": "^12.2.1",
"mockjs": "^1.1.0",
"patch-package": "^6.4.7",
"postinstall-postinstall": "^2.1.0",
"prettier": "^2.5.1",
"rollup-plugin-visualizer": "^5.5.4",
"sass": "^1.48.0",
"sass": "^1.49.0",
"typescript": "^4.5.4",
"unplugin-icons": "^0.13.0",
"unplugin-vue-components": "^0.17.13",
"vite": "^2.7.12",
"vite": "^2.7.13",
"vite-plugin-html": "^2.1.2",
"vite-plugin-mock": "^2.9.6",
"vite-plugin-windicss": "^1.6.3",
"vue-tsc": "^0.30.5",
"vue-tsc": "^0.30.6",
"vueuc": "^0.4.23",
"windicss": "^3.4.3"
}
Expand Down
Loading

0 comments on commit ce531ce

Please sign in to comment.