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

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
+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);