mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2026-02-28 00:44:26 +08:00
Compare commits
2 Commits
75cbfbbfe6
...
24bb6d95cb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24bb6d95cb | ||
|
|
4726498faa |
3
.vscode/extensions.json
vendored
3
.vscode/extensions.json
vendored
@@ -6,9 +6,6 @@
|
||||
"dbaeumer.vscode-eslint",
|
||||
"editorconfig.editorconfig",
|
||||
"esbenp.prettier-vscode",
|
||||
"formulahendry.auto-close-tag",
|
||||
"formulahendry.auto-complete-tag",
|
||||
"formulahendry.auto-rename-tag",
|
||||
"lokalise.i18n-ally",
|
||||
"mhutchie.git-graph",
|
||||
"mikestead.dotenv",
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
export function isPC() {
|
||||
const agents = ['Android', 'iPhone', 'webOS', 'BlackBerry', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod'];
|
||||
|
||||
return !agents.includes(window.navigator.userAgent);
|
||||
const isMobile = agents.some(agent => window.navigator.userAgent.includes(agent));
|
||||
|
||||
return !isMobile;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user