fix(docker,test): 修复 Docker 构建和测试配置

- 更新 Dockerfile 使用本地编译的 jar 文件
- 修复 vite.config.ts 移除未使用的 lodash-es 依赖
- 更新测试密码为 Test@123
This commit is contained in:
张翔
2026-04-28 16:04:45 +08:00
parent 31ee0d4ece
commit f44cee4958
6 changed files with 9 additions and 83 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ FROM node:20-alpine AS builder
WORKDIR /app
# 安装 pnpm
RUN npm install -g pnpm@8.15.0
RUN npm install -g pnpm@9
# 复制 package.json 和 lock 文件
COPY package.json pnpm-lock.yaml ./
+1 -1
View File
@@ -7,7 +7,7 @@ setup('authenticate', async ({ page }) => {
await page.waitForLoadState('networkidle');
await page.locator('input[placeholder*="用户名"]').fill('admin');
await page.locator('input[placeholder*="密码"]').fill('admin123');
await page.locator('input[placeholder*="密码"]').fill('Test@123');
await page.locator('button:has-text("登录")').click();
await page.waitForURL('**/dashboard', { timeout: 30000 });
+1 -1
View File
@@ -6,7 +6,7 @@ const TARGET_URL = process.env.TARGET_URL || 'http://localhost:3002';
const API_URL = process.env.API_URL || 'http://localhost:8080';
const TEST_USER = {
username: 'admin',
password: 'admin123'
password: 'Test@123'
};
// 测试结果收集
+2 -2
View File
@@ -39,7 +39,7 @@ export default defineConfig({
manualChunks: {
'vue-vendor': ['vue', 'vue-router', 'pinia'],
'element-plus': ['element-plus'],
'utils': ['lodash-es', 'axios']
'utils': ['axios']
}
}
},
@@ -47,7 +47,7 @@ export default defineConfig({
reportCompressedSize: false
},
optimizeDeps: {
include: ['vue', 'vue-router', 'pinia', 'element-plus', 'axios', 'lodash-es'],
include: ['vue', 'vue-router', 'pinia', 'element-plus', 'axios'],
exclude: []
},
css: {