Browse Source

提示音

develop
wangsixiang 5 days ago
parent
commit
3bb4963f93
  1. 8
      ruoyi-ui/src/views/websocket.vue

8
ruoyi-ui/src/views/websocket.vue

@ -106,16 +106,16 @@ export default {
break; break;
case "0": case "0":
case "3": case "3":
case "externalPlatformOffline":
case "trafficFlowDataEarlyWarning":
this.$emit("newEvent", params);
break;
case "2": case "2":
this.triggerAlert() this.triggerAlert()
setTimeout(() => { setTimeout(() => {
this.$emit("newEvent", params); this.$emit("newEvent", params);
}, 1000); // 1000 = 1 }, 1000); // 1000 = 1
break; break;
case "externalPlatformOffline":
case "trafficFlowDataEarlyWarning":
this.$emit("newEvent", params);
break;
case "1": case "1":
if(content.event.warningType==10||content.event.warningType==11){ if(content.event.warningType==10||content.event.warningType==11){
this.triggerAlert() this.triggerAlert()

Loading…
Cancel
Save