From 0929d38d3e74f537fc9941144467b9d8e651e8b2 Mon Sep 17 00:00:00 2001 From: feng <1304903146@qq.com> Date: Tue, 21 Feb 2023 15:54:33 +0800 Subject: [PATCH] perf: web account privileged --- src/components/AccountCreateUpdateForm/index.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/AccountCreateUpdateForm/index.vue b/src/components/AccountCreateUpdateForm/index.vue index d59c3f8ca..454e369cd 100644 --- a/src/components/AccountCreateUpdateForm/index.vue +++ b/src/components/AccountCreateUpdateForm/index.vue @@ -218,17 +218,13 @@ export default { }) }, controlShowField() { - let privileged = ['privileged'] + const privileged = ['privileged'] let suFrom = ['su_from'] const filterSuFrom = ['database', 'device', 'cloud', 'web'] const asset = this?.asset || {} - if (asset?.type?.value === 'website') { - privileged = [] - } if (filterSuFrom.includes(asset?.category?.value)) { suFrom = [] } - return [...privileged, ...suFrom] }, confirm(form) {