Browse Source

开启关闭全屏窗口

scorpio 2 years ago
parent
commit
42d10c117d
1 changed files with 9 additions and 9 deletions
  1. 9 9
      src/views/home/component/params/params4.vue

+ 9 - 9
src/views/home/component/params/params4.vue

@@ -310,6 +310,7 @@ export default {
       window.open(routeUrl.href, '_blank')
     },
     initFileList(list) {
+      this.data.length = 0
       if (list && list.length === 0) {
         return
       }
@@ -322,7 +323,6 @@ export default {
       })
     },
     rowDel(row, index, done) {
-      console.log(row)
       if (!Object.hasOwn(row, 'file')) {
         this.$message.error('暂无文件')
         return
@@ -332,14 +332,14 @@ export default {
         type: 'warning'
       }).then(res => {
         if (res === 'confirm') {
-            this.$api.project.fileRemove({ids: row.pid, type:3}).then(res => {
-              if (res.code === 200){
-                this.$message.success(res.msg)
-                this.proinfo()
-              } else {
-                this.$message.error(res.msg)
-              }
-            })
+          this.$api.project.fileRemove({ ids: row.pid, type: 3 }).then(res => {
+            if (res.code === 200) {
+              this.$message.success(res.msg)
+              this.proInfo()
+            } else {
+              this.$message.error(res.msg)
+            }
+          })
         }
       })
     },