From 88ddd86154ed9aa04a56e6efab90264db655fe0a Mon Sep 17 00:00:00 2001 From: Michael Bai Date: Wed, 15 Sep 2021 17:24:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=BD=95=E5=83=8F?= =?UTF-8?q?=E6=B0=B4=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/settings/Security/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/views/settings/Security/index.vue b/src/views/settings/Security/index.vue index 777774e78..9479f8eb6 100644 --- a/src/views/settings/Security/index.vue +++ b/src/views/settings/Security/index.vue @@ -31,7 +31,7 @@ export default { 'SECURITY_COMMAND_EXECUTION', 'SECURITY_SERVICE_ACCOUNT_REGISTRATION', 'SECURITY_MAX_IDLE_TIME', - 'SECURITY_WATERMARK_ENABLED', + // 'SECURITY_WATERMARK_ENABLED', 'SECURITY_SESSION_SHARE' ] ], @@ -77,6 +77,12 @@ export default { url: '/api/v1/settings/setting/?category=security' } }, + mounted() { + if (this.$store.getters.hasValidLicense) { + const securityWatermarkEnabled = 'SECURITY_WATERMARK_ENABLED' + this.fields[0][1].splice(3, 0, securityWatermarkEnabled) + } + }, methods: { submitMethod() { return 'patch'