This commit is contained in:
wuzhimiao
2025-10-31 11:04:16 +08:00
parent e84b367360
commit a6c7678a5e
270 changed files with 35873 additions and 701 deletions

View File

@@ -0,0 +1,12 @@
export function isPC() {
var userAgentInfo = navigator.userAgent;
var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
var flag = true;
for (let v = 0; v < Agents.length - 1; v++) {
if (userAgentInfo.indexOf(Agents[v]) > 0) {
flag = false;
break;
}
}
return flag;
}