ClassyGitShadowzzh

useCurrentInstance.ts

useCurrentInstance.ts
export default function useCurrentInstance() {
  const { proxy } = getCurrentInstance() as ComponentInternalInstance

  return {
    proxy: proxy!
  }
}