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: {