From 91cfe2254c73dacb02808cdd8e650ce23400fa70 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Wed, 15 Jan 2025 15:25:37 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2-?= =?UTF-8?q?=E9=A1=B5=E8=84=9A=E5=AD=97=E5=8F=B7=E4=B8=8E=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=8D=E7=AC=A6=E5=90=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/core-frontend/src/views/login/index.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/core-frontend/src/views/login/index.vue b/core/core-frontend/src/views/login/index.vue index 4fee72835e..507f41813e 100644 --- a/core/core-frontend/src/views/login/index.vue +++ b/core/core-frontend/src/views/login/index.vue @@ -183,7 +183,7 @@ const loadArrearance = () => { showFoot.value = appearanceStore.getFoot === 'true' if (showFoot.value) { const content = appearanceStore.getFootContent - const myXss = new xss.FilterXSS({ + const myXss = new xss['FilterXSS']({ css: { whiteList: { 'background-color': true, @@ -194,11 +194,12 @@ const loadArrearance = () => { 'line-height': true, 'box-sizing': true, 'padding-top': true, - 'padding-bottom': true + 'padding-bottom': true, + 'font-size': true } }, whiteList: { - ...xss.whiteList, + ...xss['whiteList'], p: ['style'], span: ['style'] }