2024-01-29 09:26:07 +08:00

6 lines
174 B
JavaScript

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