From 5ed957b62810d64633417540b35c8ad910984694 Mon Sep 17 00:00:00 2001 From: aixianling Date: Mon, 27 Mar 2023 11:20:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=8B=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=8C=87=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/lib/js/directives.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/lib/js/directives.js b/ui/lib/js/directives.js index 836c3178..bdfbf6a5 100644 --- a/ui/lib/js/directives.js +++ b/ui/lib/js/directives.js @@ -21,7 +21,7 @@ const map = { const code = binding.value const permits = JSON.parse(localStorage.getItem('vuex') || null)?.user?.info?.buttons || [] if (!permits.find(e => e.id == code || e.permission == code)) { - el.parentNode.removeChild(el) + el.style.display = 'none' } } }