2025-10-16 09:59:34 +08:00
|
|
|
const { defineConfig } = require('@vue/cli-service')
|
|
|
|
|
|
|
|
|
|
module.exports = defineConfig({
|
|
|
|
|
transpileDependencies: true,
|
|
|
|
|
devServer: {
|
|
|
|
|
port: 8080,
|
|
|
|
|
open: true,
|
|
|
|
|
// 反向代理5001
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api': {
|
2025-10-16 16:21:56 +08:00
|
|
|
target: 'http://localhost:5003',
|
2025-10-16 09:59:34 +08:00
|
|
|
changeOrigin: true,
|
|
|
|
|
secure: false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|