修复移动端无法打开脚本管理、任务日志

This commit is contained in:
hanhh
2021-08-29 00:34:47 +08:00
parent 8cef0b6216
commit 7eed47cd8e
4 changed files with 9 additions and 18 deletions
+3 -1
View File
@@ -105,7 +105,9 @@ const Log = ({ headerStyle, isPhone, theme }: any) => {
useEffect(() => {
getLogs();
setHeight(treeDom.current.clientHeight);
if (treeDom && treeDom.current) {
setHeight(treeDom.current.clientHeight);
}
}, []);
return (
+3 -1
View File
@@ -192,7 +192,9 @@ const Script = ({ headerStyle, isPhone, theme }: any) => {
useEffect(() => {
getScripts();
setHeight(treeDom.current.clientHeight);
if (treeDom && treeDom.current) {
setHeight(treeDom.current.clientHeight);
}
}, []);
return (