mirror of
https://github.com/whyour/qinglong.git
synced 2026-12-01 09:45:36 +08:00
修复移动端无法打开脚本管理、任务日志
This commit is contained in:
1 parent
8cef0b6216
commit
7eed47cd8e
4 files changed
+9
-18
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user