|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const handleSubmit = (auth) => { | 
|---|
|  |  |  | setLoading(true); | 
|---|
|  |  |  | // js native confirm && root | 
|---|
|  |  |  | login( | 
|---|
|  |  |  | auth, | 
|---|
|  |  |  | location.state ? (location.state).nextPathname : '/' | 
|---|
|  |  |  | 
|---|
|  |  |  | alignItems: 'center', | 
|---|
|  |  |  | justifyContent: 'flex-start', | 
|---|
|  |  |  | // justifyContent: 'center', | 
|---|
|  |  |  | background: `url(/login_bg3.jpg)`, | 
|---|
|  |  |  | background: `url(/login_bg1.jpg)`, | 
|---|
|  |  |  | backgroundRepeat: 'no-repeat', | 
|---|
|  |  |  | backgroundSize: 'cover', | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | 
|---|
|  |  |  | }} | 
|---|
|  |  |  | > | 
|---|
|  |  |  | {LOGIN_BACKGROUND === 'media' && ( | 
|---|
|  |  |  | <source src="/login_bg0.mp4" type="video/mp4" /> | 
|---|
|  |  |  | <source src="/login_bg1.mp4" type="video/mp4" /> | 
|---|
|  |  |  | )} | 
|---|
|  |  |  | </video> | 
|---|
|  |  |  |  | 
|---|