Browse Source

Commented out baseURL for local host on main.js

master
Lene 5 years ago
parent
commit
528081a6f1
2 changed files with 3 additions and 2 deletions
  1. 1
    1
      src/main.js
  2. 2
    1
      vue.config.js

+ 1
- 1
src/main.js View File

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
 Vue.prototype.$axios = axios;
14
 Vue.prototype.$axios = axios;
15
 
15
 
16
 Vue.prototype.$http = axios;
16
 Vue.prototype.$http = axios;

+ 2
- 1
vue.config.js View File

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

Loading…
Cancel
Save