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

+ 5 - 1
src/view/plagiarismCheck/index.vue

@@ -188,7 +188,7 @@ import {
 import header_local from '../allMedia/components/header.vue';
 import { ElMessage, ElLoading, genFileId } from 'element-plus';
 import { Delete, Tickets, Notification } from '@element-plus/icons-vue';
-import { ref } from 'vue';
+import { ref, onBeforeUnmount } from 'vue';
 const up = ref(null);
 const dialogVisible = ref(false);
 const showimport = ref(false);
@@ -210,6 +210,10 @@ const onSubmit = () => {
   getProList();
 };
 
+onBeforeUnmount(()=>{
+    if (t) clearInterval(t);
+})
+
 // 轮询结果'
 const lunxun = () => {
   if (t) clearInterval(t);