scorpio 2 years ago
parent
commit
52dab4a1eb
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/components/filepicker/index.vue

+ 4 - 1
src/components/filepicker/index.vue

@@ -351,7 +351,10 @@ export default {
       this.selectedList = list
       this.selectedList = list
     },
     },
     rowClick(res) {
     rowClick(res) {
-      this.currentRow = res
+      if (res.type === 2) {
+        this.currentRow = res
+      }
+      console.log(this.currentRow)
       const tmp = this.list.find(ele => ele.id === res.id)
       const tmp = this.list.find(ele => ele.id === res.id)
       this.parentId = tmp.id
       this.parentId = tmp.id
       if (tmp && tmp.type !== 2) {
       if (tmp && tmp.type !== 2) {