6 lines
174 B
JavaScript
Raw Normal View History

2024-01-29 09:26:07 +08:00
import { getCurrentInstance } from 'vue';
export function hasInstance() {
return getCurrentInstance() !== null;
}
export const isBrowser = typeof window !== 'undefined';