ソースを参照

chore: update readme.md

vben 4 年 前
コミット
2fbc450414

+ 1 - 1
README.md

@@ -61,7 +61,7 @@
 
 ## 文档
 
-2.0 文档很快完成,请耐心等待。
+[文档地址,持续更新中。。,](https://vvbin.cn/doc-next/)
 
 ## 预安装
 

+ 0 - 22
src/router/menus/modules/demo/charts.ts

@@ -27,28 +27,6 @@ const menu: MenuModule = {
           },
         ],
       },
-      //   {
-      // path: '/excel',
-      // name: 'excel',
-      // children: [
-      {
-        path: '/customExport',
-        name: '选择导出格式',
-      },
-      {
-        path: '/jsonExport',
-        name: 'JSON数据导出',
-      },
-      {
-        path: '/arrayExport',
-        name: 'Array数据导出',
-      },
-      {
-        path: '/importExcel',
-        name: '导入',
-      },
-      //     ],
-      //   },
     ],
   },
 };

+ 29 - 0
src/router/menus/modules/demo/excel.ts

@@ -0,0 +1,29 @@
+import type { MenuModule } from '/@/router/types.d';
+const menu: MenuModule = {
+  orderNo: 500,
+  menu: {
+    name: 'Excel',
+    path: '/excel',
+    children: [
+      {
+        path: '/customExport',
+        name: '选择导出格式',
+      },
+      {
+        path: '/jsonExport',
+        name: 'JSON数据导出',
+      },
+      {
+        path: '/arrayExport',
+        name: 'Array数据导出',
+      },
+      {
+        path: '/importExcel',
+        name: '导入',
+      },
+      //     ],
+      //   },
+    ],
+  },
+};
+export default menu;

+ 0 - 42
src/router/routes/modules/demo/charts.ts

@@ -56,47 +56,5 @@ export default {
       },
       component: () => import('/@/views/demo/echarts/apex/index.vue'),
     },
-    // {
-    //   path: '/excel',
-    //   name: 'ExcelDemo',
-    //   redirect: '/charts/excel/export',
-    //   meta: {
-    //     title: 'excel',
-    //   },
-    //   children: [
-    {
-      path: '/customExport',
-      name: 'CustomExport',
-      component: () => import('/@/views/demo/echarts/excel/CustomExport.vue'),
-      meta: {
-        title: '选择导出格式',
-      },
-    },
-    {
-      path: '/jsonExport',
-      name: 'JsonExport',
-      component: () => import('/@/views/demo/echarts/excel/JsonExport.vue'),
-      meta: {
-        title: 'JSON数据导出',
-      },
-    },
-    {
-      path: '/arrayExport',
-      name: 'ArrayExport',
-      component: () => import('/@/views/demo/echarts/excel/ArrayExport.vue'),
-      meta: {
-        title: 'Array数据导出',
-      },
-    },
-    {
-      path: '/importExcel',
-      name: 'ImportExcel',
-      component: () => import('/@/views/demo/echarts/excel/ImportExcel.vue'),
-      meta: {
-        title: '导入',
-      },
-    },
-    //   ],
-    // },
   ],
 } as AppRouteModule;

+ 53 - 0
src/router/routes/modules/demo/excel.ts

@@ -0,0 +1,53 @@
+import type { AppRouteModule } from '/@/router/types';
+
+import { PAGE_LAYOUT_COMPONENT } from '/@/router/constant';
+
+export default {
+  layout: {
+    path: '/excel',
+    name: 'Excel',
+    component: PAGE_LAYOUT_COMPONENT,
+    redirect: '/excel/customExport',
+    meta: {
+      icon: 'ant-design:area-chart-outlined',
+      title: 'Excel',
+    },
+  },
+
+  routes: [
+    {
+      path: '/customExport',
+      name: 'CustomExport',
+      component: () => import('/@/views/demo/echarts/excel/CustomExport.vue'),
+      meta: {
+        title: '选择导出格式',
+      },
+    },
+    {
+      path: '/jsonExport',
+      name: 'JsonExport',
+      component: () => import('/@/views/demo/echarts/excel/JsonExport.vue'),
+      meta: {
+        title: 'JSON数据导出',
+      },
+    },
+    {
+      path: '/arrayExport',
+      name: 'ArrayExport',
+      component: () => import('/@/views/demo/echarts/excel/ArrayExport.vue'),
+      meta: {
+        title: 'Array数据导出',
+      },
+    },
+    {
+      path: '/importExcel',
+      name: 'ImportExcel',
+      component: () => import('/@/views/demo/echarts/excel/ImportExcel.vue'),
+      meta: {
+        title: '导入',
+      },
+    },
+    //   ],
+    // },
+  ],
+} as AppRouteModule;

+ 2 - 2
src/router/routes/modules/demo/iframe.ts

@@ -31,7 +31,7 @@ export default {
       name: 'Doc',
       component: IFrame,
       meta: {
-        frameSrc: 'https://vvbin.cn/docs/',
+        frameSrc: 'https://vvbin.cn/doc-next/',
         title: '项目文档(内嵌)',
         afterCloseLoading: true,
       },
@@ -41,7 +41,7 @@ export default {
       name: 'DocExternal',
       component: IFrame,
       meta: {
-        externalLink: 'https://vvbin.cn/docs/',
+        externalLink: 'https://vvbin.cn/doc-next/',
         title: '项目文档(外链)',
       },
     },

+ 1 - 1
src/settings/siteSetting.ts

@@ -1,4 +1,4 @@
 // github repo url
 export const GITHUB_URL = 'https://github.com/anncwb/vue-vben-admin';
 // vue-vben-admin-next-doc
-export const DOC_URL = '';
+export const DOC_URL = 'https://vvbin.cn/doc-next/';