6 lines
174 B
JavaScript
Raw Permalink Normal View History

2025-02-28 19:43:11 +08:00
import { getCurrentInstance } from 'vue';
export function hasInstance() {
return getCurrentInstance() !== null;
}
export const isBrowser = typeof window !== 'undefined';