From 590a8198e9fcb503aaeb04f6d550c65bf30c0566 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 11 三月 2020 18:01:06 +0800 Subject: [PATCH] 2020-03-11 --- src/views/login/index.jsx | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/views/login/index.jsx b/src/views/login/index.jsx index e1b9292..83a2061 100644 --- a/src/views/login/index.jsx +++ b/src/views/login/index.jsx @@ -13,6 +13,7 @@ import './index.scss' const LoginForm = asyncComponent(() => import('./loginform')) +const Action = asyncComponent(() => import('@/tabviews/tableshare/actionList')) const iszhCN = !localStorage.getItem('lang') || localStorage.getItem('lang') === 'zh-CN' class Login extends Component { @@ -28,7 +29,8 @@ ICP: window.GLOB.icp || 'ICP澶囨锛� 浜琁CP澶�12007830鍙�', bgColor: window.GLOB.bgColor || '#000000', lineColor: window.GLOB.lineColor || '#1890ff', - website: window.GLOB.website || (!window.GLOB.copyRight && 'http://minkesoft.com') + website: window.GLOB.website || (!window.GLOB.copyRight && 'http://minkesoft.com'), + loaded: false } changelang (item) { @@ -116,7 +118,8 @@ localStorage.setItem('AuthCode', box) this.setState({ - auth: true + auth: true, + loaded: true }) } else { localStorage.removeItem('AuthCode') @@ -136,6 +139,7 @@ } render () { + return ( <div className="login-container" style={{backgroundImage: 'url(' + this.state.bgImage + ')', backgroundColor: this.state.bgColor}}> <div className="logo" style={{borderColor: this.state.lineColor}}> @@ -160,6 +164,7 @@ } <p dangerouslySetInnerHTML={{ __html: this.state.ICP.replace(/\s/ig, ' ') }}></p> </div> + {this.state.loaded ? <div style={{position: 'fixed', bottom: '-1000px'}}><Action setting={{}} actions={[]} /></div> : null } </div> ) } -- Gitblit v1.8.0