浏览代码

修改下载报告----问题

plg 3 月之前
父节点
当前提交
ac12ca328c
共有 1 个文件被更改,包括 12 次插入8 次删除
  1. 12 8
      src/views/manage/channelManagement/channelManagement.vue

+ 12 - 8
src/views/manage/channelManagement/channelManagement.vue

@@ -601,17 +601,21 @@ export default {
     }
     this.searchTarget();
   },
-  onUnmounted() {
-    
-    clearInterval(this.timeFlag)
+
+  destroyed() {
+    clearInterval(this.timeFlag);
   },
   methods: {
     fileNameFormatter(val) {
-      let nameTmp = val.filePath;
-      //开始截取字符串
-      let lastIndex = nameTmp.lastIndexOf("/");
-      // console.log(nameTmp.slice(lastIndex+1, 0));
-      return nameTmp.slice(lastIndex + 1, nameTmp.length);
+      if (val.filePath == null) {
+        return;
+      } else {
+        let nameTmp = val.filePath;
+        //开始截取字符串
+        let lastIndex = nameTmp.lastIndexOf("/");
+        // console.log(nameTmp.slice(lastIndex+1, 0));
+        return nameTmp.slice(lastIndex + 1, nameTmp.length);
+      }
     },
     closeResetFun() {
       //关闭