From 881dc3fcf09ad6cc6347b4b09f1172b353645d49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B0=A2=E5=87=AF?= Date: Mon, 22 Mar 2021 17:52:34 +0800 Subject: [PATCH] update ruoyi-ui/src/views/system/user/profile/userAvatar.vue. --- ruoyi-ui/src/views/system/user/profile/userAvatar.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ruoyi-ui/src/views/system/user/profile/userAvatar.vue b/ruoyi-ui/src/views/system/user/profile/userAvatar.vue index aca1990..4547d3d 100644 --- a/ruoyi-ui/src/views/system/user/profile/userAvatar.vue +++ b/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: { // 编辑头像