浏览代码

组装看板添加循环播放

yhluo 3 月之前
父节点
当前提交
2199b66f16
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11 0
      src/views/zz/index.vue

+ 11 - 0
src/views/zz/index.vue

@@ -135,6 +135,17 @@ export default {
     this.$nextTick(() => {
       this.autoFullScreen();
     })
+
+    setInterval(() => {
+      var currentLine = sessionStorage.getItem("zzlicode");
+      for(var item of this.linedata){
+        if(currentLine != item.LI_NAME){
+          sessionStorage.setItem("zzlicode",item.LI_NAME)
+          location.reload();
+        }
+      }
+    }, 60000);
+
   setTimeout(() => {
       this.$router.push("/makeprocess")
     }, 300000)