mirror of
https://github.com/soybeanjs/soybean-admin.git
synced 2025-11-14 12:43:42 +08:00
fix(projects): fix global-tab click conflict with contextmenu
This commit is contained in:
5
src/utils/agent.ts
Normal file
5
src/utils/agent.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
export function isPC() {
|
||||
const agents = ['Android', 'iPhone', 'webOS', 'BlackBerry', 'SymbianOS', 'Windows Phone', 'iPad', 'iPod'];
|
||||
|
||||
return !agents.includes(window.navigator.userAgent);
|
||||
}
|
||||
Reference in New Issue
Block a user