Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

2 лет назад
123456789101112
  1. import { ComponentInternalInstance, getCurrentInstance } from 'vue'
  2. export default function useInstance() {
  3. const { appContext, proxy } = getCurrentInstance() as ComponentInternalInstance;
  4. const global = appContext.config.globalProperties;
  5. return {
  6. proxy,
  7. global,
  8. appContext
  9. }
  10. }