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