From 43200a601a0123e65f1a5129549b30d7726cc262 Mon Sep 17 00:00:00 2001 From: aeizzz Date: Tue, 14 Feb 2023 15:50:29 +0800 Subject: [PATCH] =?UTF-8?q?=20:recycle:=20Refactoring=20code.=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=A4=B4=E5=83=8F=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6?= =?UTF-8?q?=E5=92=8C=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Upload/Image.vue | 114 +++++++++++++++++++++ src/components/Upload/index.vue | 171 ++++++++++++++++++++++++++++++++ src/router/route.ts | 17 +--- src/views/admin/file/index.vue | 2 + 4 files changed, 288 insertions(+), 16 deletions(-) create mode 100644 src/components/Upload/Image.vue create mode 100644 src/components/Upload/index.vue diff --git a/src/components/Upload/Image.vue b/src/components/Upload/Image.vue new file mode 100644 index 00000000..fcc21b3b --- /dev/null +++ b/src/components/Upload/Image.vue @@ -0,0 +1,114 @@ + + + + + + + diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue new file mode 100644 index 00000000..cb94277b --- /dev/null +++ b/src/components/Upload/index.vue @@ -0,0 +1,171 @@ + + + + + + diff --git a/src/router/route.ts b/src/router/route.ts index 3f3c62d2..b3c32575 100644 --- a/src/router/route.ts +++ b/src/router/route.ts @@ -48,22 +48,7 @@ export const dynamicRoutes: Array = [ title: 'hzxc', isKeepAlive: true, }, - children: [ - { - path: '/home', - name: 'home', - component: () => import('/@/views/home/index.vue'), - meta: { - title: 'router.home', - isLink: '', - isHide: false, - isKeepAlive: true, - isAffix: true, - isIframe: false, - icon: 'iconfont icon-shouye', - }, - }, - ], + children: [] }, ]; diff --git a/src/views/admin/file/index.vue b/src/views/admin/file/index.vue index 27a49659..963c8b40 100644 --- a/src/views/admin/file/index.vue +++ b/src/views/admin/file/index.vue @@ -43,6 +43,7 @@ import {downBlobFile} from "/@/utils/other"; // 引入组件 const FormDialog = defineAsyncComponent(() => import('./form.vue')); +const UploadImage = defineAsyncComponent(() => import('/@/components/Upload/Image.vue')) const { t } = useI18n() // 定义查询字典 @@ -78,6 +79,7 @@ const download = (row: any) => { ); } + // 删除操作 const handleDelete = (row: any) => { if (!row) {