SanHQin 2 月之前
父节点
当前提交
4c91fefebf

+ 1 - 1
dist/index.html

@@ -27,7 +27,7 @@
     html,
     html,
     body{
     body{
       font-family: '黑体';
       font-family: '黑体';
-    }</style><link href=./static/css/app.4bbab17fee35c2b61475b62f847de7b8.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.acbd8cb5870df69e0141.js></script><script type=text/javascript src=./static/js/app.39244db7272e1d6a623a.js></script></body></html><script>function stopSafari() {
+    }</style><link href=./static/css/app.defaeb4871fab970858493ee67fed550.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.3ad1d5771e9b13dbdad2.js></script><script type=text/javascript src=./static/js/vendor.acbd8cb5870df69e0141.js></script><script type=text/javascript src=./static/js/app.24c8b8add3643ee75858.js></script></body></html><script>function stopSafari() {
     //阻止safari浏览器双击放大功能
     //阻止safari浏览器双击放大功能
     let lastTouchEnd = 0  //更新手指弹起的时间
     let lastTouchEnd = 0  //更新手指弹起的时间
     document.documentElement.addEventListener("touchstart", function (event) {
     document.documentElement.addEventListener("touchstart", function (event) {

文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/app.defaeb4871fab970858493ee67fed550.css


文件差异内容过多而无法显示
+ 0 - 0
dist/static/css/app.defaeb4871fab970858493ee67fed550.css.map


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.24c8b8add3643ee75858.js


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/app.24c8b8add3643ee75858.js.map


文件差异内容过多而无法显示
+ 0 - 0
dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map


+ 11 - 0
src/components/classRoomHelper/component/levitatedSphere.vue

@@ -103,6 +103,11 @@ export default {
       this.aiText = "";
       this.aiText = "";
       this.userText = "";
       this.userText = "";
       this.stopRecord();
       this.stopRecord();
+      if(this.curRequestController){
+          this.curRequestController.abort();
+          console.log("请求已终止");
+          this.curRequestController = null;
+      }
 		},
 		},
 		stopOne(){
 		stopOne(){
 			if(this.source){
 			if(this.source){
@@ -111,12 +116,18 @@ export default {
 			}
 			}
 			if (this.talkLoading) {
 			if (this.talkLoading) {
         this.stopTalk();
         this.stopTalk();
+      }
+      if(this.curRequestController){
+          this.curRequestController.abort();
+          console.log("请求已终止");
+          this.curRequestController = null;
       }
       }
 			this.showIndex = 0;
 			this.showIndex = 0;
 			this.showTextIndex = 0;
 			this.showTextIndex = 0;
 			this.aiText = "您好,我是小可,有什么可以帮助您的?";
 			this.aiText = "您好,我是小可,有什么可以帮助您的?";
 			this.aiStatus = 0;
 			this.aiStatus = 0;
 			this.chatLoading = false;
 			this.chatLoading = false;
+
 		},
 		},
     recordStart(_text) {
     recordStart(_text) {
       var OpenCC = require("opencc-js");
       var OpenCC = require("opencc-js");

+ 1 - 1
src/components/classRoomHelper/index.vue

@@ -904,7 +904,7 @@ ${_textData}
       this.isBtn = true
       this.isBtn = true
       setTimeout(() => {
       setTimeout(() => {
           this.isBtn = false
           this.isBtn = false
-      }, 500);
+      }, 1000);
 
 
       if (this.recordLoading) return this.$message.info("请稍等...");
       if (this.recordLoading) return this.$message.info("请稍等...");
       this.recordLoading = true;
       this.recordLoading = true;

部分文件因为文件数量过多而无法显示