From da9f991d4211281248524caa5e112b6ecff84b70 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 29 四月 2025 11:28:15 +0800
Subject: [PATCH] 2025-04-29

---
 src/views/login/loginform.jsx |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/views/login/loginform.jsx b/src/views/login/loginform.jsx
index 8d19904..a1eee12 100644
--- a/src/views/login/loginform.jsx
+++ b/src/views/login/loginform.jsx
@@ -25,12 +25,10 @@
     }
   }
 
-  let content = window.decodeURIComponent(window.atob(prolCont))
-
   return (
     <>
-      {prolType !== 'not_required' ? <Checkbox defaultChecked={checked} onChange={change} style={{marginRight: '8px'}}></Checkbox> : null}
-      <span dangerouslySetInnerHTML={{__html: content}}></span>
+      <Checkbox defaultChecked={checked} onChange={change} style={{marginRight: '8px'}}></Checkbox>
+      <span dangerouslySetInnerHTML={{__html: prolCont}}></span>
     </>
   )
 }
@@ -79,8 +77,6 @@
       protocol = localStorage.getItem(window.GLOB.sysSign + 'protocol') === 'true'
     } else if (prolType === 'every_time') {
       protocol = false
-    } else if (prolType === 'not_required') {
-      protocol = true
     }
 
     let remember = true
@@ -553,7 +549,7 @@
             )}
           </Form.Item> : null}
           <Form.Item className="btn-login">
-            {protocol === false ? <Tooltip placement="top" trigger="click" title={dict['protocol_check'] || '璇烽槄璇诲苟鍚屾剰鍗忚锛�'}>
+            {protocol === false ? <Tooltip overlayStyle={{maxWidth: 500}} placement="top" trigger="click" title={dict['protocol_check'] || '璇烽槄璇诲苟鍚屾剰鍗忚锛�'}>
               <Button type="primary" htmlType="submit" className="login-form-button disabled">
                 {dict['log_in'] || '鐧诲綍'}
               </Button>
@@ -617,7 +613,7 @@
             )}
           </Form.Item> : null}
           <Form.Item className="btn-login">
-            {protocol === false ? <Tooltip placement="top" trigger="click" title={dict['protocol_check'] || '璇烽槄璇诲苟鍚屾剰鍗忚锛�'}>
+            {protocol === false ? <Tooltip overlayStyle={{maxWidth: 500}} placement="top" trigger="click" title={dict['protocol_check'] || '璇烽槄璇诲苟鍚屾剰鍗忚锛�'}>
               <Button type="primary" htmlType="submit" className="login-form-button disabled">
                 {dict['log_in'] || '鐧诲綍'}
               </Button>

--
Gitblit v1.8.0