فهرست منبع

Merge branch 'master' of http://192.168.0.115:3000/4dkankan/4dkankan_bim

bill 2 سال پیش
والد
کامیت
5ee3b31e81
1فایلهای تغییر یافته به همراه28 افزوده شده و 28 حذف شده
  1. 28 28
      src/pages/LaserBim.vue

+ 28 - 28
src/pages/LaserBim.vue

@@ -191,20 +191,20 @@ const onPrevDate = name => {
         index = scenes.length - 1
     }
 
-    if (name) {
-        if (name == 'source') {
-            if (scenes[index].num == target.value.num) {
-                index--
-            }
-        } else {
-            if (scenes[index].num == source.value.num) {
-                index--
-            }
-        }
-    }
-    if (index == -1) {
-        index = scenes.length - 1
-    }
+    // if (name) {
+    //     if (name == 'source') {
+    //         if (scenes[index].num == target.value.num) {
+    //             index--
+    //         }
+    //     } else {
+    //         if (scenes[index].num == source.value.num) {
+    //             index--
+    //         }
+    //     }
+    // }
+    // if (index == -1) {
+    //     index = scenes.length - 1
+    // }
     scene.value = scenes[index]
 }
 const onNextDate = name => {
@@ -221,20 +221,20 @@ const onNextDate = name => {
     if (++index > scenes.length - 1) {
         index = 0
     }
-    if (name) {
-        if (name == 'source') {
-            if (scenes[index].num == target.value.num) {
-                index++
-            }
-        } else {
-            if (scenes[index].num == source.value.num) {
-                index++
-            }
-        }
-    }
-    if (index > scenes.length - 1) {
-        index = 0
-    }
+    // if (name) {
+    //     if (name == 'source') {
+    //         if (scenes[index].num == target.value.num) {
+    //             index++
+    //         }
+    //     } else {
+    //         if (scenes[index].num == source.value.num) {
+    //             index++
+    //         }
+    //     }
+    // }
+    // if (index > scenes.length - 1) {
+    //     index = 0
+    // }
     scene.value = scenes[index]
 }