From f8a9d0f85017537fc2ac5d1cdb7a9a90f22c556e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 06 十二月 2022 14:48:53 +0800 Subject: [PATCH] 2022-12-06 --- src/views/login/index.jsx | 10 +++++++++- 1 files changed, 9 insertions(+), 1 deletions(-) diff --git a/src/views/login/index.jsx b/src/views/login/index.jsx index faa33c5..a84496f 100644 --- a/src/views/login/index.jsx +++ b/src/views/login/index.jsx @@ -300,6 +300,14 @@ // if (!res || !res.ip) return // sessionStorage.setItem('ipAddress', res.ip) // }) + if (window.GLOB.filter) { + let view = document.getElementById('mk-login-view') + + if (view) { + view.style.filter = 'grayscale(100%)' + } + } + if (sessionStorage.getItem('loginError')) { try { let res = JSON.parse(sessionStorage.getItem('loginError')) @@ -862,7 +870,7 @@ const { lineColor, bgImage, loginlogo, copyRight, webSite, ICP, loginWays, touristLogin } = this.state return ( - <div className="login-container" style={bgImage ? {backgroundImage: 'url(' + bgImage + ')'} : {}}> + <div className="login-container" id="mk-login-view" style={bgImage ? {backgroundImage: 'url(' + bgImage + ')'} : {}}> <div className="logo" style={lineColor ? {borderColor: lineColor} : {}}> {loginlogo ? <img src={loginlogo} alt=""/> : null} {this.state.platName ? <p className="plat-name">{this.state.platName}</p> : null} -- Gitblit v1.8.0