Browse Source

update ruoyi-ui/src/views/system/user/profile/userAvatar.vue.

谢凯 4 years ago
parent
commit
881dc3fcf0
1 changed files with 8 additions and 0 deletions
  1. 8 0
      ruoyi-ui/src/views/system/user/profile/userAvatar.vue

+ 8 - 0
ruoyi-ui/src/views/system/user/profile/userAvatar.vue

@@ -81,6 +81,14 @@ export default {
       },
       previews: {}
     };
+  },
+    created() {
+    // 显隐列组件默认隐藏列
+    for (let item in this.columns) {
+      if (this.columns[item].visible === false) {
+        this.value.push(parseInt(item))
+      }
+    }
   },
   methods: {
     // 编辑头像