fix(config): 修正开发服务器代理配置

- 将代理目标端口从 18082 修正为 8082
- 更新错误提示信息中的端口号以保持一致
This commit is contained in:
2025-12-26 16:21:32 +08:00
parent 857f46ad17
commit 6d725b51cb

View File

@@ -27,7 +27,7 @@ export default defineConfig({
port: 3000,
proxy: {
'/api': {
target: 'http://127.0.0.1:18082',
target: 'http://127.0.0.1:8082',
changeOrigin: true,
secure: false,
ws: true,
@@ -35,7 +35,7 @@ export default defineConfig({
configure: (proxy, options) => {
proxy.on('error', (err, req, res) => {
console.error('代理错误:', err.message)
console.error('请确保后端服务已启动在 http://127.0.0.1:18082')
console.error('请确保后端服务已启动在 http://127.0.0.1:8082')
})
}
}