Ver código fonte

fix: 文字速度

刘秀芳 1 mês atrás
pai
commit
d10a5b5bcb

+ 2 - 2
src/views/warningHome/components/chat_components/index.vue

@@ -375,7 +375,7 @@ const addSystemReply = (type = "system", textObject, callback) => {
                     scrollToBottom();
                     callback && callback(); // 回复完成后解锁输入
                 }
-            }, 5);
+            }, 50);
         } else {
             callback && callback(); // 如果 content 为空,直接解锁输入
         }
@@ -394,7 +394,7 @@ const addSystemReply = (type = "system", textObject, callback) => {
                 clearInterval(headerInterval);
                 showContent();
             }
-        }, 5); // 50ms 逐字显示 header
+        }, 50); // 50ms 逐字显示 header
     } else {
         showContent();
     }

+ 1 - 1
src/views/warningHome/components/timeLine.vue

@@ -141,7 +141,7 @@ const restActive = () => {
     handleChange();
 };
 
-eventBus.on("map_click_alarm", ({warningTypeId,factorId})=>{
+eventBus.on("map_click_alarm", ()=>{
   restActive()
 })
 

+ 3 - 0
src/views/warningHome/index.vue

@@ -159,6 +159,9 @@ const handleMapLayer = ({mapName}) => {
     console.log('mapName', mapName);
     staticMapPointLayers.hidePoint()
     staticMapLayers.hideAll()
+
+    // 重置时间轴
+    // eventBus.emit("map_click_alarm")
     if (mapName === "植保机") {
         staticMapLayers.show("分散种植", true)
         staticMapPointLayers.showPoint()