From 613972f4a13e81af4fb498bfbc6d5eddf2f2e171 Mon Sep 17 00:00:00 2001 From: hooray <304327508@qq.com> Date: Sun, 23 Oct 2022 14:18:17 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=B0=86=20element=20plus=20?= =?UTF-8?q?=E5=8F=8D=E9=A6=88=E7=BB=84=E4=BB=B6=E6=94=B9=E4=B8=BA=E6=89=8B?= =?UTF-8?q?=E5=8A=A8=E5=BC=95=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.ts | 1 + src/auto-imports.d.ts | 1 - src/components/FileUpload/index.vue | 2 +- src/components/ImageUpload/index.vue | 1 + src/components/ImagesUpload/index.vue | 1 + src/layouts/components/AppSetting/index.vue | 1 + src/views/login.vue | 1 + src/views/personal/edit.password.vue | 1 + src/views/personal/setting.vue | 1 + vite.config.ts | 13 +------------ vite/plugins/auto-import.ts | 4 ---- 11 files changed, 9 insertions(+), 18 deletions(-) diff --git a/src/api/index.ts b/src/api/index.ts index 808350a4..e3f4446c 100644 --- a/src/api/index.ts +++ b/src/api/index.ts @@ -1,5 +1,6 @@ import axios from 'axios' // import qs from 'qs' +import { ElMessage } from 'element-plus' import router from '@/router/index' import useUserStore from '@/store/modules/user' diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index 83cabc8f..566dd2f7 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -2,7 +2,6 @@ export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] - const ElMessage: typeof import('element-plus/es')['ElMessage'] const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate'] const computed: typeof import('vue')['computed'] const createApp: typeof import('vue')['createApp'] diff --git a/src/components/FileUpload/index.vue b/src/components/FileUpload/index.vue index d61fbe06..9302b14a 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -1,5 +1,5 @@