mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 01:14:50 +08:00
修复移动端无法打开脚本管理、任务日志
This commit is contained in:
@@ -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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user