Browse Source

chore: 组件路由放置到演示路由下

pull/4019/head
invalid w 2 years ago
parent
commit
3c24632ad5
  1. 6
      apps/web-antd/src/locales/langs/en-US.json
  2. 6
      apps/web-antd/src/locales/langs/zh-CN.json
  3. 21
      apps/web-antd/src/router/routes/modules/comp.ts
  4. 10
      apps/web-antd/src/router/routes/modules/demos.ts

6
apps/web-antd/src/locales/langs/en-US.json

@ -55,10 +55,10 @@
"lateralDetail": "Lateral Mode Detail",
"level": "Level Mode",
"levelDetail": "Level Mode Detail"
},
"comp": {
"title": "Component"
}
},
"comp": {
"title": "Component"
}
}
}

6
apps/web-antd/src/locales/langs/zh-CN.json

@ -55,10 +55,10 @@
"level": "层级模式",
"levelDetail": "层级模式详情",
"lateralDetail": "平级模式详情"
},
"comp": {
"title": "组件"
}
},
"comp": {
"title": "组件"
}
}
}

21
apps/web-antd/src/router/routes/modules/comp.ts

@ -1,21 +0,0 @@
import type { RouteRecordRaw } from 'vue-router';
import { BasicLayout } from '#/layouts';
import { $t } from '#/locales';
const routes: RouteRecordRaw[] = [
{
component: BasicLayout,
meta: {
icon: 'ic:baseline-view-in-ar',
keepAlive: true,
order: 1000,
title: $t('page.comp.title'),
},
name: 'Comp',
path: '/comp',
children: [],
},
];
export default routes;

10
apps/web-antd/src/router/routes/modules/demos.ts

@ -167,6 +167,16 @@ const routes: RouteRecordRaw[] = [
},
],
},
// 组件
{
meta: {
icon: 'ion:layers-outline',
title: $t('page.demos.comp.title'),
},
name: 'CompDemos',
path: '/demos/comp',
children: [],
},
// 面包屑导航
{
name: 'BreadcrumbDemos',

Loading…
Cancel
Save