From 3adffd5ca7af47eb254fb054e344cbb765c15eb9 Mon Sep 17 00:00:00 2001 From: peerless_hero Date: Wed, 30 Aug 2023 16:46:10 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4dayjs=E7=9A=84?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- types/auto-imports.d.ts | 3 --- vite.config.ts | 7 +++---- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/types/auto-imports.d.ts b/types/auto-imports.d.ts index 102591a..b0a515f 100644 --- a/types/auto-imports.d.ts +++ b/types/auto-imports.d.ts @@ -33,7 +33,6 @@ declare global { const createUnrefFn: typeof import('@vueuse/core')['createUnrefFn'] const createVNode: typeof import('vue')['createVNode'] const customRef: typeof import('vue')['customRef'] - const dayjs: typeof import('element-plus')['dayjs'] const debouncedRef: typeof import('@vueuse/core')['debouncedRef'] const debouncedWatch: typeof import('@vueuse/core')['debouncedWatch'] const defineAsyncComponent: typeof import('vue')['defineAsyncComponent'] @@ -327,7 +326,6 @@ declare module 'vue' { readonly createUnrefFn: UnwrapRef readonly createVNode: UnwrapRef readonly customRef: UnwrapRef - readonly dayjs: UnwrapRef readonly debouncedRef: UnwrapRef readonly debouncedWatch: UnwrapRef readonly defineAsyncComponent: UnwrapRef @@ -615,7 +613,6 @@ declare module '@vue/runtime-core' { readonly createUnrefFn: UnwrapRef readonly createVNode: UnwrapRef readonly customRef: UnwrapRef - readonly dayjs: UnwrapRef readonly debouncedRef: UnwrapRef readonly debouncedWatch: UnwrapRef readonly defineAsyncComponent: UnwrapRef diff --git a/vite.config.ts b/vite.config.ts index 4caf384..859e02f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,8 +1,8 @@ /* * @Author: zhaojinfeng 121016171@qq.com * @Date: 2023-06-15 13:22:04 - * @LastEditors: zhaojinfeng 121016171@qq.com - * @LastEditTime: 2023-07-21 12:26:14 + * @LastEditors: peerless_hero peerless_hero@outlook.com + * @LastEditTime: 2023-08-30 16:30:47 * @FilePath: \vue3\vite.config.ts * @Description: * @@ -51,8 +51,7 @@ export default defineConfig({ 'vue-router', '@vueuse/core', { - 'vue': ['createVNode'], - 'element-plus': ['dayjs'], + vue: ['createVNode'], }, ], vueTemplate: true,