fix: 修复裁判端选手列表数据问题
- score-list添加competitionId参数传递 - 项目筛选改为横向滑动布局 - 修复env.config.js生产环境配置 🤖 Generated with Claude Code Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,27 +1,17 @@
|
||||
module.exports = {
|
||||
// 输出目录
|
||||
outputDir: 'dist/build/h5',
|
||||
|
||||
// 静态资源目录
|
||||
assetsDir: 'static',
|
||||
|
||||
// 公共路径 - 重要!确保静态资源能正确加载
|
||||
publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
|
||||
|
||||
// 生产环境配置
|
||||
productionSourceMap: false,
|
||||
|
||||
// CSS 提取配置
|
||||
css: {
|
||||
extract: true,
|
||||
sourceMap: false
|
||||
},
|
||||
|
||||
// 开发服务器配置
|
||||
devServer: {
|
||||
port: 8080,
|
||||
host: '0.0.0.0',
|
||||
open: true,
|
||||
open: false,
|
||||
disableHostCheck: true,
|
||||
overlay: {
|
||||
warnings: false,
|
||||
errors: true
|
||||
@@ -37,14 +27,10 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
chainWebpack: config => {
|
||||
// 禁用 gzip 大小报告
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
config.performance.hints(false)
|
||||
}
|
||||
|
||||
// 确保 CSS 文件正确处理
|
||||
config.module
|
||||
.rule('vue')
|
||||
.use('vue-loader')
|
||||
|
||||
Reference in New Issue
Block a user