From e341b45429ed84f61d7d0dfaf870065bce58eb61 Mon Sep 17 00:00:00 2001 From: yangxu52 Date: Thu, 6 Mar 2025 23:54:06 +0800 Subject: [PATCH 1/3] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E5=86=97?= =?UTF-8?q?=E4=BD=99=E7=9A=84=E7=B1=BB=E5=9E=8B=E5=A3=B0=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用defineConfig自带类型推断,无需单独声明类型 --- vite.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 8f44b950..b29dd407 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,9 +1,9 @@ -import { type UserConfig, type ConfigEnv, loadEnv, defineConfig } from 'vite'; +import { defineConfig, loadEnv } from 'vite'; import createPlugins from './vite/plugins'; import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀 - import path from 'path'; -export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => { + +export default defineConfig(({ mode, command }) => { const env = loadEnv(mode, process.cwd()); return { // 部署生产环境和开发环境下的URL。 -- Gitee From 71b9d5d46857e9d03c4fb3cbcb0793c93551c407 Mon Sep 17 00:00:00 2001 From: yangxu52 Date: Fri, 7 Mar 2025 00:01:37 +0800 Subject: [PATCH 2/3] =?UTF-8?q?chore:=20=E7=BB=9F=E4=B8=80script=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E7=9A=84=E5=AD=97=E6=AE=B5=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - - - diff --git a/src/layout/components/TopBar/search.vue b/src/layout/components/TopBar/search.vue index 182e84a8..348d099f 100644 --- a/src/layout/components/TopBar/search.vue +++ b/src/layout/components/TopBar/search.vue @@ -130,7 +130,7 @@ defineExpose({ }); - diff --git a/src/views/system/role/selectUser.vue b/src/views/system/role/selectUser.vue index e55120a4..12df8282 100644 --- a/src/views/system/role/selectUser.vue +++ b/src/views/system/role/selectUser.vue @@ -128,5 +128,3 @@ defineExpose({ show }); - - diff --git a/src/views/system/user/index.vue b/src/views/system/user/index.vue index 605c4cd5..b9b7a9aa 100644 --- a/src/views/system/user/index.vue +++ b/src/views/system/user/index.vue @@ -288,15 +288,15 @@ - - diff --git a/src/views/system/user/profile/thirdParty.vue b/src/views/system/user/profile/thirdParty.vue index 4a445e0d..11d02d40 100644 --- a/src/views/system/user/profile/thirdParty.vue +++ b/src/views/system/user/profile/thirdParty.vue @@ -94,7 +94,7 @@ const authUrl = (source: string) => { }; -