From 8d3169b28d283d4b324db526e4901b7e4b56a506 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=98=E6=B0=91=E5=BA=B7?= Date: Thu, 20 Mar 2025 16:46:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8C=85=E9=85=8D=E7=BD=AE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/components/Header/UserAvatar.vue | 2 +- vite.config.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 33a7f8e..a8e7966 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ lerna-debug.log* node_modules .DS_Store dist +openRepoPortal dist-ssr coverage *.local diff --git a/src/components/Header/UserAvatar.vue b/src/components/Header/UserAvatar.vue index c83f31a..274e272 100644 --- a/src/components/Header/UserAvatar.vue +++ b/src/components/Header/UserAvatar.vue @@ -10,7 +10,7 @@
- {{ accountInfo.username ? accountInfo.username[0] : '' }} + {{ accountInfo.username ? accountInfo.username : '' }}
@{{ accountInfo.username }}
diff --git a/vite.config.ts b/vite.config.ts index aacfe7c..8647cb0 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -61,6 +61,7 @@ export default (config: any) => { }, build: { + outDir: 'openRepoPortal', // 将打包后的文件夹名改为 openRepoPortal // sourcemap: config.mode !== 'production', minify: 'terser', // 确保使用 terser 进行压缩 terserOptions: {