shaogen1995 hace 4 años
padre
commit
1fd0b1675d
Se han modificado 2 ficheros con 8 adiciones y 7 borrados
  1. 2 1
      houtai/src/utils/request.js
  2. 6 6
      web/src/views/gui/menu.vue

+ 2 - 1
houtai/src/utils/request.js

@@ -1,6 +1,7 @@
 import axios from 'axios'
 import axios from 'axios'
 const service = axios.create({
 const service = axios.create({
-  baseURL: 'http://192.168.0.135:8011/', // 本地调试
+  // baseURL: 'http://192.168.0.135:8011/', // 本地调试
+  baseURL: 'http://8.135.106.227:8011/', // 显示调试
   // baseURL: '', // build
   // baseURL: '', // build
   timeout: 5000
   timeout: 5000
 })
 })

+ 6 - 6
web/src/views/gui/menu.vue

@@ -913,7 +913,7 @@ export default {
           fd.append("file", blob, Date.now() + ".jpg");
           fd.append("file", blob, Date.now() + ".jpg");
           //Ajax上传FormData对象
           //Ajax上传FormData对象
           $.ajax({
           $.ajax({
-            url: "http://192.168.0.135:8011/web/upload",
+            url: "http://8.135.106.227:8011/web/upload",
             type: "POST",
             type: "POST",
             cache: false,
             cache: false,
             data: fd,
             data: fd,
@@ -924,7 +924,7 @@ export default {
               console.log("上传图片成功", res);
               console.log("上传图片成功", res);
               if (res.code === 0) {
               if (res.code === 0) {
                 this.$message.success("生成二维码成功");
                 this.$message.success("生成二维码成功");
-                this.qrCodeUrl = "http://192.168.0.135:8011/" + res.data;
+                this.qrCodeUrl = "http://8.135.106.227:8011/" + res.data;
                 this.topicXShow = true;
                 this.topicXShow = true;
               }
               }
             })
             })
@@ -956,7 +956,7 @@ export default {
       }
       }
       //发送请求
       //发送请求
       $.ajax({
       $.ajax({
-        url: "http://192.168.0.135:8011/web/comment/save",
+        url: "http://8.135.106.227:8011/web/comment/save",
         type: "POST",
         type: "POST",
         data: JSON.stringify(data),
         data: JSON.stringify(data),
         dataType: "json",
         dataType: "json",
@@ -1058,7 +1058,7 @@ export default {
           fd.append("file", blob, Date.now() + ".jpg");
           fd.append("file", blob, Date.now() + ".jpg");
           //Ajax上传FormData对象
           //Ajax上传FormData对象
           $.ajax({
           $.ajax({
-            url: "http://192.168.0.135:8011/web/upload",
+            url: "http://8.135.106.227:8011/web/upload",
             type: "POST",
             type: "POST",
             cache: false,
             cache: false,
             data: fd,
             data: fd,
@@ -1069,7 +1069,7 @@ export default {
               console.log("上传图片成功", res);
               console.log("上传图片成功", res);
               if (res.code === 0) {
               if (res.code === 0) {
                 this.$message.success("生成二维码成功");
                 this.$message.success("生成二维码成功");
-                this.qrCodeUrl = "http://192.168.0.135:8011/" + res.data;
+                this.qrCodeUrl = "http://8.135.106.227:8011/" + res.data;
                 this.topicXShow = true;
                 this.topicXShow = true;
                  if (myBoo) this.toPictureShow=false
                  if (myBoo) this.toPictureShow=false
               }
               }
@@ -1181,7 +1181,7 @@ export default {
     getList(data){
     getList(data){
         $.ajax({
         $.ajax({
           type: "POST",
           type: "POST",
-          url: "http://192.168.0.135:8011/web/comment/list",
+          url: "http://8.135.106.227:8011/web/comment/list",
           data: JSON.stringify(data),
           data: JSON.stringify(data),
           dataType: "json",
           dataType: "json",
           contentType: "application/json;charset=UTF-8",
           contentType: "application/json;charset=UTF-8",