소스 검색

修改本地后端请求地址

yanghe17378 11 달 전
부모
커밋
ce98cee35e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      vue.config.js

+ 1 - 1
vue.config.js

@@ -32,7 +32,7 @@ module.exports = {
     proxy: {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
-        target: 'http://192.168.1.105:18086',
+        target: 'http://localhost:18086',
         // target: 'http://192.168.1.158:18086',
         // target: 'http://192.168.1.176:18086',
         // target: 'http://192.168.1.251:18086',