2025-12-10 12:02:17 +08:00

6 lines
174 B
JavaScript

import { getCurrentInstance } from 'vue';
export function hasInstance() {
return getCurrentInstance() !== null;
}
export const isBrowser = typeof window !== 'undefined';