Просмотр исходного кода

Commented out baseURL for local host on main.js

master
Lene 5 лет назад
Родитель
Сommit
528081a6f1
2 измененных файлов: 3 добавлений и 2 удалений
  1. 1
    1
      src/main.js
  2. 2
    1
      vue.config.js

+ 1
- 1
src/main.js Просмотреть файл

@@ -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 Просмотреть файл

@@ -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': {

Загрузка…
Отмена
Сохранить