Browse Source

API Port changed

master
George Williams 4 years ago
parent
commit
84871b8737
2 changed files with 12 additions and 11 deletions
  1. 3
    1
      src/main.js
  2. 9
    10
      vue.config.js

+ 3
- 1
src/main.js View File

@@ -10,7 +10,9 @@ 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
+axios.defaults.baseURL = 'http://training.provision-sa.com:82';
15
+
14 16
 Vue.prototype.$axios = axios;
15 17
 
16 18
 Vue.prototype.$http = axios;

+ 9
- 10
vue.config.js View File

@@ -1,16 +1,15 @@
1 1
 module.exports = {
2 2
   devServer: {
3 3
     proxy: {
4
-      '/api': {
4
+      "/api": {
5 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
 };

Loading…
Cancel
Save