src/api/index.js
@@ -13,15 +13,16 @@ } if (debug) { ip1 = 'http://192.168.0.103:8084/'; // ip1 = 'http://localhost:8084/'; ws = `192.168.0.103:9031`; // ws = `localhost:9031`; // ip1 = 'http://192.168.0.103:8084/'; ip1 = 'http://localhost:8084/'; // ws = `192.168.0.103:9031`; ws = `localhost:9031`; } const $http = axios.create({ baseURL: ip1, timeout: 30000 // timeout: 30000, timeout: 0 }); //添加拦截器