Przeglądaj źródła

修改实物模型路径问题

shaogen1995 4 lat temu
rodzic
commit
44df310254

+ 3 - 3
houtai/src/utils/request.js

@@ -1,8 +1,8 @@
 import axios from 'axios'
 const service = axios.create({
-  baseURL: 'http://192.168.0.135:8012/', // 本地调试
-  // baseURL: '', // 线上调试
-  // baseURL: '', // build
+  // baseURL: 'http://192.168.0.135:8012/', // 本地调试
+  // baseURL: 'http://192.168.0.245:8005/', // 线上调试
+  baseURL: '', // build
   timeout: 5000
 })
 // 请求拦截器

+ 1 - 1
web/public/4dage/Model.html

@@ -28,7 +28,7 @@
     <script type="text/javascript" src="js/weixin.js"></script>
     <script>
          var number = getQueryVariable("m");
-       fdage.embed('http://192.168.0.135:8012'+number, { width: 800, height: 600, autoStart: true, fullFrame: true, pagePreset: false });
+       fdage.embed('http://192.168.0.245:8005'+number, { width: 800, height: 600, autoStart: true, fullFrame: true, pagePreset: false });
 
         var number = getQueryVariable("m");
         let pageNum = number.split("_")[1];

+ 2 - 2
web/src/utils/request.js

@@ -1,7 +1,7 @@
 import axios from 'axios'
 const service = axios.create({
-  baseURL: 'http://192.168.0.135:8012/', // 本地调试
-  // baseURL: 'http://192.168.0.245:8005/', // 线上调试
+  // baseURL: 'http://192.168.0.135:8012/', // 本地调试
+  baseURL: 'http://192.168.0.245:8005/', // 线上调试
   // baseURL: '', // build
   timeout: 5000
 })

+ 1 - 1
web/src/views/tab3/index.vue

@@ -170,7 +170,7 @@ export default {
     // 点击模型
     async goodClick(item) {
       if (item.type === "model") {
-        this.mySrc = "/4dage/Model.html?m=" + item.filePath;
+        this.mySrc = "4dage/Model.html?m=" + item.filePath;
         // this.mySrc = '/4dage/Model.html'
         this.modelShow = true;
       } else if (item.type === "img") {