소스 검색

注释浏览器关闭监听

zhangyu 5 년 전
부모
커밋
493d1d1eeb
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/views/model/file/index.vue

+ 7 - 0
src/views/model/file/index.vue

@@ -184,6 +184,13 @@ export default {
       isJump: true //是否可以调整页面
     };
   },
+  // mounted() {
+  //   window.addEventListener('beforeunload', e => {
+  //     if (this.uploadClassList.length) {
+  //       window.localStorage.removeItem("当前页有下载内容,关闭或刷新页面下载将会失败。您确定要继续吗?")
+  //     }
+  //   })
+  // },
   methods: {
     // 以下是模型文件夹