更新任务
This commit is contained in:
1 parent
120a57ad57
commit
6118a80ac4
279 files changed
+9682
-2362
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { inBrowser } from 'vitepress'
|
||||
|
||||
// 判断当前页面是否为移动端
|
||||
export function isMobile() {
|
||||
if (inBrowser) {
|
||||
return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
Reference in new issue
Block a user