修复移动端100vh兼容性

This commit is contained in:
whyour
2021-05-11 19:37:37 +08:00
parent d9db5442d3
commit 49a3662788
12 changed files with 45 additions and 40 deletions
+2
View File
@@ -13,6 +13,7 @@ import config from '@/utils/config';
import 'codemirror/mode/shell/shell.js';
import { request } from '@/utils/http';
import './index.less';
import vhCheck from 'vh-check';
export default function (props: any) {
const logout = () => {
@@ -27,6 +28,7 @@ export default function (props: any) {
if (!isAuth) {
history.push('/login');
}
vhCheck();
}, []);
useEffect(() => {