|
@@ -24,7 +24,7 @@ import showModal from "../../components/showModal"
|
|
const LoginSucc: React.FC = () => {
|
|
const LoginSucc: React.FC = () => {
|
|
|
|
|
|
/*************************************/
|
|
/*************************************/
|
|
- const { dispatch, state: { initData: { h5GameUrl, h5SignShow }, userData, isBind, isAuth, orientation }, getDetails } = useContext(DispatchContext)!;
|
|
|
|
|
|
+ const { dispatch, state: { initData: { h5GameUrl, h5SignShow, orientation: isOrientationServer }, userData, isBind, isAuth, orientation }, getDetails } = useContext(DispatchContext)!;
|
|
const { userId, authentication, checkSwitch, bindPhone } = userData
|
|
const { userId, authentication, checkSwitch, bindPhone } = userData
|
|
const [open, setOpen] = useState<boolean>(false)
|
|
const [open, setOpen] = useState<boolean>(false)
|
|
const [openPhone, setOpenPhone] = useState<boolean>(false)
|
|
const [openPhone, setOpenPhone] = useState<boolean>(false)
|
|
@@ -58,7 +58,7 @@ const LoginSucc: React.FC = () => {
|
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
let os = isOs()
|
|
let os = isOs()
|
|
- if (['ios', 'android'].includes(os) && orientation === 'VERTICAL') {
|
|
|
|
|
|
+ if (['ios', 'android'].includes(os) && orientation === 'VERTICAL' && !isOrientationServer) {
|
|
setIsVer(true)
|
|
setIsVer(true)
|
|
} else {
|
|
} else {
|
|
setIsVer(false)
|
|
setIsVer(false)
|