Procházet zdrojové kódy

API Port changed

master
George Williams před 4 roky
rodič
revize
84871b8737
2 změnil soubory, kde provedl 12 přidání a 11 odebrání
  1. 3
    1
      src/main.js
  2. 9
    10
      vue.config.js

+ 3
- 1
src/main.js Zobrazit soubor

10
 Vue.use(EvaIcons);
10
 Vue.use(EvaIcons);
11
 
11
 
12
 Vue.config.productionTip = false;
12
 Vue.config.productionTip = false;
13
-// axios.defaults.baseURL = 'http://localhost:57260/';
13
+//axios.defaults.baseURL = "http://localhost:57260";
14
+axios.defaults.baseURL = 'http://training.provision-sa.com:82';
15
+
14
 Vue.prototype.$axios = axios;
16
 Vue.prototype.$axios = axios;
15
 
17
 
16
 Vue.prototype.$http = axios;
18
 Vue.prototype.$http = axios;

+ 9
- 10
vue.config.js Zobrazit soubor

1
 module.exports = {
1
 module.exports = {
2
   devServer: {
2
   devServer: {
3
     proxy: {
3
     proxy: {
4
-      '/api': {
4
+      "/api": {
5
         //target: 'http://localhost:57260/',
5
         //target: 'http://localhost:57260/',
6
-        //target: 'http://192.168.6.188:5000',
7
-        target: 'http://192.168.0.219:113',
8
-        changeOrigin: true,
6
+        target: "http://training.provision-sa.com:82",
7
+        changeOrigin: true
9
       },
8
       },
10
-      '/nph-srep': {
11
-        target: 'http://www.unipoint-consoft.co.za',
12
-        changeOrigin: true,
13
-      },
14
-    },
15
-  },
9
+      "/nph-srep": {
10
+        target: "http://www.unipoint-consoft.co.za",
11
+        changeOrigin: true
12
+      }
13
+    }
14
+  }
16
 };
15
 };

Načítá se…
Zrušit
Uložit