king
2025-04-29 da9f991d4211281248524caa5e112b6ecff84b70
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>