liyongli 1 年之前
父節點
當前提交
156af3e819
共有 1 個文件被更改,包括 7 次插入5 次删除
  1. 7 5
      src/view/finance/index.vue

+ 7 - 5
src/view/finance/index.vue

@@ -202,7 +202,7 @@ const config = reactive({
 });
 const search = ref('');
 const t = config.isShanShiPin ? 5 : 1;
-let time_old= undefined;
+let time_old = undefined;
 const phone =
   window.$shanshipin.Phone && window.$shanshipin.Phone != 0
     ? window.$shanshipin.Phone
@@ -241,17 +241,19 @@ const getList = call => {
         item = v;
       }
     }
-    time_old = setTimeout(() => {
+    if (item) {
+      time_old = setTimeout(() => {
         clickShowVideo(item);
         clearTimeout(time_old);
-    }, 200);
+      }, 200);
+    }
     ids.value = ids_list;
     orilist.value = obj;
     call && call();
   });
 };
 onMounted(() => {
-    getList();
+  getList();
 });
 
 const getIndex = key => {
@@ -463,7 +465,7 @@ const clickShowVideo = item => {
     selectItem.value.id +
     'v=' +
     Date.now();
-    console.log(window.wx)
+  console.log(window.wx);
   if (window.wx.updateAppMessageShareData)
     window.wx.updateAppMessageShareData({
       title: selectItem.value.name, // 分享标题