Skip to content

Commit 25a69f5

Browse files
committed
[IMP] tree_view_button 兼容之前的buttons参数, 更新demo图片
1 parent ca9caf5 commit 25a69f5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tree_view_button/model/adapter.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ def button_filter(self, buttons):
5151
for button in buttons:
5252
zh, en = button[1].split(delimiter)
5353
button[1] = zh if self._context.get('lang') == 'zh_CN' else en
54-
if self.check_user_groups(button[2]):
54+
if len(button) > 2 and self.check_user_groups(button[2]):
55+
res.append(button)
56+
else:
5557
res.append(button)
5658
return res
82.7 KB
Loading

0 commit comments

Comments
 (0)