Browse Source

去掉https

asd26269546 2 years ago
parent
commit
06db031dbe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/libs/axios.js

+ 2 - 2
src/libs/axios.js

@@ -140,7 +140,7 @@ export function get(url, params = {}) {
         if(process.env.NODE_ENV == "development"){
             var getUrl = "http://" + window.location.host + "" + url
         }else{
-            var getUrl = "https://" + window.location.host + url
+            var getUrl = "http://" + window.location.host + url
         }
         axios.get(getUrl, {params:params})
             .then(response => {
@@ -166,7 +166,7 @@ export function post(url, data = {},params,headers) {
         if(process.env.NODE_ENV == "development"){
             var postUrl = "http://" + window.location.host + url
         }else{
-            var postUrl = "https://" + window.location.host + url
+            var postUrl = "http://" + window.location.host + url
         }
         axios.post(postUrl, data = {},{
             params:params,