大屏页面布局

This commit is contained in:
2026-02-26 15:34:58 +08:00
parent d5f1635ff0
commit df39961ac1
5 changed files with 36 additions and 52 deletions

View File

@@ -14,13 +14,15 @@ export default defineConfig({
'@': path.resolve(__dirname, './src')
}
},
// 开发环境代理(适配后端接口)
server: {
host: '0.0.0.0',
port: 5173,
open: true,
proxy: {
'/api': {
target: 'http://127.0.0.1:31001',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
rewrite: (path) => path.replace(/^\/api/, ''),
}
}
},
@@ -28,6 +30,7 @@ export default defineConfig({
build: {
outDir: 'dist',
base: '/',
assetsDir: 'assets'
assetsDir: 'assets',
chunkSizeWarningLimit: 1500
}
})