This commit is contained in:
li
2026-01-17 19:08:14 +08:00
parent 7073975960
commit 71def0f3c7
1409 changed files with 101928 additions and 43 deletions
+12
View File
@@ -0,0 +1,12 @@
export function getDevtoolsGlobalHook() {
return getTarget().__VUE_DEVTOOLS_GLOBAL_HOOK__;
}
export function getTarget() {
// @ts-ignore
return (typeof navigator !== 'undefined' && typeof window !== 'undefined')
? window
: typeof global !== 'undefined'
? global
: {};
}
export const isProxyAvailable = typeof Proxy === 'function';