From 08bef75035f97718640da8c45bcc8eba7f63d31a Mon Sep 17 00:00:00 2001 From: hooray <304327508@qq.com> Date: Sun, 23 Oct 2022 14:17:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=20element=20plus=20=E5=8F=8D=E9=A6=88?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=94=B9=E4=B8=BA=E6=89=8B=E5=8A=A8=E5=BC=95?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 - src/api/index.ts | 1 + src/auto-imports.d.ts | 3 --- src/components/FileUpload/index.vue | 2 +- src/components/ImageUpload/index.vue | 1 + src/components/ImagesUpload/index.vue | 1 + src/components/SystemInfo/index.vue | 3 --- src/layouts/components/AppSetting/index.vue | 1 + src/layouts/components/BuyIt/index.vue | 2 ++ src/views/component_extend_example/pcas.demo.vue | 1 + src/views/component_extend_example/upload.demo.vue | 1 + src/views/login.vue | 1 + src/views/mock_example/index.vue | 1 + src/views/permission_example/index.vue | 1 + src/views/personal/edit.password.vue | 1 + src/views/personal/setting.vue | 1 + vite.config.ts | 14 +------------- vite/plugins/auto-import.ts | 4 ---- 18 files changed, 15 insertions(+), 25 deletions(-) diff --git a/package.json b/package.json index 5b5362f..b688bf3 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,4 @@ { - "version": "1.0.0", "scripts": { "dev": "vite", "build:example": "vue-tsc --noEmit && vite build --mode example", diff --git a/src/api/index.ts b/src/api/index.ts index 808350a..e3f4446 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 d0edda1..566dd2f 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -2,9 +2,6 @@ export {} declare global { const EffectScope: typeof import('vue')['EffectScope'] - const ElLoading: typeof import('element-plus/es')['ElLoading'] - const ElMessage: typeof import('element-plus/es')['ElMessage'] - const ElNotification: typeof import('element-plus/es')['ElNotification'] 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 d61fbe0..9302b14 100644 --- a/src/components/FileUpload/index.vue +++ b/src/components/FileUpload/index.vue @@ -1,5 +1,5 @@