Explorar el Código

Commented out baseURL for local host on main.js

master
Lene hace 5 años
padre
commit
528081a6f1
Se han modificado 2 ficheros con 3 adiciones y 2 borrados
  1. 1
    1
      src/main.js
  2. 2
    1
      vue.config.js

+ 1
- 1
src/main.js Ver fichero

@@ -10,7 +10,7 @@ import store from './store';
10 10
 Vue.use(EvaIcons);
11 11
 
12 12
 Vue.config.productionTip = false;
13
-axios.defaults.baseURL = 'http://localhost:57260/';
13
+// axios.defaults.baseURL = 'http://localhost:57260/';
14 14
 Vue.prototype.$axios = axios;
15 15
 
16 16
 Vue.prototype.$http = axios;

+ 2
- 1
vue.config.js Ver fichero

@@ -2,7 +2,8 @@ module.exports = {
2 2
   devServer: {
3 3
     proxy: {
4 4
       '/api': {
5
-        target: 'http://192.168.6.188:5000',
5
+        target: 'http://localhost:57260/',
6
+        // target: 'http://192.168.6.188:5000',
6 7
         changeOrigin: true,
7 8
       },
8 9
       '/nph-srep': {

Loading…
Cancelar
Guardar