diff --git a/src/main.js b/src/main.js index 458558b..11f6e4f 100644 --- a/src/main.js +++ b/src/main.js @@ -88,7 +88,7 @@ app.use(ElementPlus, { app.use(WebSocketPlugin, { // url: import.meta.env.VITE_WS_URL, - url: 'ws://10.148.108.95:13080/ws', + url: 'ws://127.0.0.1:13080/ws', // url: 'ws://10.148.209.5:13080/ws', userId: 'your_user_id' }); diff --git a/vite.config.js b/vite.config.js index 6ef73cf..2befd7a 100644 --- a/vite.config.js +++ b/vite.config.js @@ -36,7 +36,7 @@ export default defineConfig(({mode, command}) => { //赵 http://10.148.108.58:13080 // dev http://10.148.20.34:13080 // target: command === 'build' ? VITE_API_URL : 'http://10.148.20.34:13080', - target: command === 'build' ? VITE_API_URL : 'http://10.148.108.95:13080', + target: command === 'build' ? VITE_API_URL : 'http://127.0.0.1:13080', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, '') }