소스 검색

feat(notice): add link module

Lind 4 년 전
부모
커밋
6a7876ce7b
5개의 변경된 파일43개의 추가작업 그리고 0개의 파일을 삭제
  1. 23 0
      config/routes.ts
  2. 6 0
      src/pages/notice/Config/index.tsx
  3. 4 0
      src/pages/notice/Config/typings.d.ts
  4. 6 0
      src/pages/notice/Template/index.tsx
  5. 4 0
      src/pages/notice/Template/typings.d.ts

+ 23 - 0
config/routes.ts

@@ -180,6 +180,29 @@
     ],
   },
   {
+    path: '/notice',
+    name: 'notice',
+    icon: 'crown',
+    routes: [
+      {
+        path: '/notice',
+        redirect: '/notice/config',
+      },
+      {
+        path: '/notice/config',
+        name: 'config',
+        icon: 'smile',
+        component: './notice/Config',
+      },
+      {
+        path: '/notice/template',
+        name: 'template',
+        icon: 'smile',
+        component: './notice/Template',
+      },
+    ],
+  },
+  {
     path: '/log',
     name: 'log',
     icon: 'crown',

+ 6 - 0
src/pages/notice/Config/index.tsx

@@ -0,0 +1,6 @@
+import { PageContainer } from '@ant-design/pro-layout';
+
+const Config = () => {
+  return <PageContainer>Config</PageContainer>;
+};
+export default Config;

+ 4 - 0
src/pages/notice/Config/typings.d.ts

@@ -0,0 +1,4 @@
+type Item = {
+  id: string;
+  name: string;
+};

+ 6 - 0
src/pages/notice/Template/index.tsx

@@ -0,0 +1,6 @@
+import { PageContainer } from '@ant-design/pro-layout';
+
+const Template = () => {
+  return <PageContainer>Template</PageContainer>;
+};
+export default Template;

+ 4 - 0
src/pages/notice/Template/typings.d.ts

@@ -0,0 +1,4 @@
+type Item = {
+  id: string;
+  name: string;
+};