diff --git a/vite.config.js b/vite.config.js index b51322e..8a2c1c7 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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') }) } }