All checks were successful
PR Preview / teardown-preview (pull_request) Has been skipped
Test / unit-test (push) Successful in 6s
Test / build-check (push) Successful in 7s
PR Preview / test (pull_request) Successful in 9s
PR Preview / deploy-preview (pull_request) Successful in 16s
Test / e2e-test (push) Successful in 1m0s
- 消耗分析:同时用完不显示"最先消耗完",去掉"最多" - 项目卡片:鼠标悬停显示删除按钮 - 表头:精油/用量/每滴/小计,避免手机换行 - 删除按钮缩小 - 价格计算:标签和值间距缩短 - 构建时间改为英国时区 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25 lines
557 B
JavaScript
25 lines
557 B
JavaScript
import { defineConfig } from 'vite'
|
|
import vue from '@vitejs/plugin-vue'
|
|
|
|
const buildTime = new Date().toLocaleString('en-GB', { timeZone: 'Europe/London', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' })
|
|
|
|
export default defineConfig({
|
|
define: {
|
|
__BUILD_TIME__: JSON.stringify(buildTime),
|
|
},
|
|
plugins: [vue()],
|
|
server: {
|
|
proxy: {
|
|
'/api': 'http://localhost:8000',
|
|
'/uploads': 'http://localhost:8000'
|
|
}
|
|
},
|
|
build: {
|
|
outDir: 'dist'
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
}
|
|
})
|