Преглед изворни кода

feat(notice): add link module

Lind пре 4 година
родитељ
комит
6a7876ce7b

+ 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;
+};