Browse Source

修改生物反馈路径

[plg137200.] 1 year ago
parent
commit
7d96a6124b

+ 14 - 13
src/renderer/components/AnimationDes.vue

@@ -1576,38 +1576,39 @@ export default {
       this.clearDataFun();
       switch (val) {
         case 1:
-          this.urlThreeP = this.pubSrc + "/candle/index.html";
+          //this.urlThreeP = this.pubSrc + "/candle/index.html";
           // this.urlThreeP = pubSrc+ + "/candle/index.html";
+           this.urlThreeP = __static + "/candle/index.html";
           this.delayTime();
           break;
         case 2:
-          this.urlThreeP = this.pubSrc + "/flower/index.html";
-          // this.urlThreeP = __static + "/flower/index.html";
+          // this.urlThreeP = this.pubSrc + "/flower/index.html";
+          this.urlThreeP = __static + "/flower/index.html";
           this.delayTime();
           break;
         case 3:
-          this.urlThreeP = this.pubSrc + "/car/index.html";
-          // this.urlThreeP = __static + "/car/index.html";
+          // this.urlThreeP = this.pubSrc + "/car/index.html";
+          this.urlThreeP = __static + "/car/index.html";
           this.delayTime();
           break;
         case 4:
-          this.urlThreeP = this.pubSrc + "/baobaotong/index.html";
-          // this.urlThreeP = __static + "/baobaotong/index.html";
+          // this.urlThreeP = this.pubSrc + "/baobaotong/index.html";
+          this.urlThreeP = __static + "/baobaotong/index.html";
           this.delayTime();
           break;
         case 5:
-          this.urlThreeP = this.pubSrc + "/bomb/index.html";
-          // this.urlThreeP = __static + "/bomb/index.html";
+          // this.urlThreeP = this.pubSrc + "/bomb/index.html";
+          this.urlThreeP = __static + "/bomb/index.html";
           this.delayTime();
           break;
         case 6:
-          this.urlThreeP = this.pubSrc + "/piaofuqiu/index.html";
-          // this.urlThreeP = __static + "/piaofuqiu/index.html";
+          // this.urlThreeP = this.pubSrc + "/piaofuqiu/index.html";
+          this.urlThreeP = __static + "/piaofuqiu/index.html";
           this.delayTime();
           break;
         default:
-          this.urlThreeP = this.pubSrc + "/candle/index.html";
-        // this.urlThreeP = __static + "/candle/index.html";
+          // this.urlThreeP = this.pubSrc + "/candle/index.html";
+        this.urlThreeP = __static + "/candle/index.html";
       }
       this.gameScene = val;
       this.flag = this.gameScene;

+ 15 - 14
src/renderer/components/AnimationDouble.vue

@@ -2079,38 +2079,39 @@ export default {
       this.clearDataFun();
       switch (val) {
         case 1:
-          this.urlThreeP = this.pubSrc + "/candle/index.html";
-          // this.urlThreeP = pubSrc+ + "/candle/index.html";
+          // this.urlThreeP = this.pubSrc + "/candle/index.html";
+           //this.urlThreeP = this.pubSrc + "/candle/index.html";
+          this.urlThreeP = __static + "/candle/index.html";
           this.delayTime();
           break;
         case 2:
-          this.urlThreeP = this.pubSrc + "/flower/index.html";
-          // this.urlThreeP = __static + "/flower/index.html";
+          //this.urlThreeP = this.pubSrc + "/flower/index.html";
+          this.urlThreeP = __static + "/flower/index.html";
           this.delayTime();
           break;
         case 3:
-          this.urlThreeP = this.pubSrc + "/car/index.html";
-          // this.urlThreeP = __static + "/car/index.html";
+          //this.urlThreeP = this.pubSrc + "/car/index.html";
+           this.urlThreeP = __static + "/car/index.html";
           this.delayTime();
           break;
         case 4:
-          this.urlThreeP = this.pubSrc + "/baobaotong/index.html";
-          // this.urlThreeP = __static + "/baobaotong/index.html";
+          //this.urlThreeP = this.pubSrc + "/baobaotong/index.html";
+           this.urlThreeP = __static + "/baobaotong/index.html";
           this.delayTime();
           break;
         case 5:
-          this.urlThreeP = this.pubSrc + "/bomb/index.html";
-          // this.urlThreeP = __static + "/bomb/index.html";
+          //this.urlThreeP = this.pubSrc + "/bomb/index.html";
+           this.urlThreeP = __static + "/bomb/index.html";
           this.delayTime();
           break;
         case 6:
-          this.urlThreeP = this.pubSrc + "/piaofuqiu/index.html";
-          // this.urlThreeP = __static + "/piaofuqiu/index.html";
+          //this.urlThreeP = this.pubSrc + "/piaofuqiu/index.html";
+           this.urlThreeP = __static + "/piaofuqiu/index.html";
           this.delayTime();
           break;
         default:
-          this.urlThreeP = this.pubSrc + "/candle/index.html";
-        // this.urlThreeP = __static + "/candle/index.html";
+         // this.urlThreeP = this.pubSrc + "/candle/index.html";
+         this.urlThreeP = __static + "/candle/index.html";
       }
       this.gameScene = val;
       this.flag = this.gameScene;

+ 9 - 11
src/renderer/components/Smart1.vue

@@ -614,9 +614,7 @@ export default {
     },
 
     sendMsg() {
-      if (
-        this.desc.length == 0 || this.buttonFlag 
-      ) {
+      if (this.desc.length == 0 || this.buttonFlag) {
         return;
       }
       this.sendMsgFlag = false;
@@ -763,6 +761,10 @@ export default {
             this.chatContents[this.chatContents.length - 1].question +=
               a.charAt(this.printIndex);
             this.printIndex++;
+            let contant1 = document.getElementById("contant1");
+            this.sleep(101).then(() => {
+              contant1.scrollTop = contant1.scrollHeight;
+            });
           } else {
             if (flag) {
               that.buttonFlag = false;
@@ -803,15 +805,11 @@ export default {
       };
       console.log(data);
       // this.$message.success("保存成功");
-      this.$http.post(
-        `/intelligent/save`,
-         data,
-        (res) => {
-          if (res.data.code == 200) {
-          } else {
-          }
+      this.$http.post(`/intelligent/save`, data, (res) => {
+        if (res.data.code == 200) {
+        } else {
         }
-      );
+      });
     },
     //调用接口查询情绪
     selectMood(val) {