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

This commit is contained in:
hanhh committed 2021-08-29 00:34:47 +08:00
1 parent 8cef0b6216
commit 7eed47cd8e
4 files changed
+9 -18

No files matched your search

+1 -1
View File
@@ -9,7 +9,7 @@ export const useCtx = () => {
const { platform } = useMemo(() => browserType(), []);
useEffect(() => {
if (platform === 'mobile' || document.body.offsetWidth < 768) {
if (platform === 'mobile' && document.body.offsetWidth < 768) {
setWidth('auto');
setMarginLeft(0);
setMarginTop(0);