global.d.ts 402 Bytes
Newer Older
zhangsan's avatar
zhangsan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import { onPageShow, onPageHide } from '@/composables'
import { $loading } from '@/hooks/useLoading'

declare module 'vue' {
  interface ComponentCustomProperties {
    $onPageShow: typeof onPageShow
    $onPageHide: typeof onPageHide
    $loading: typeof $loading
  }
}

// 扩展 axios 配置类型
declare module 'axios' {
  interface AxiosRequestConfig {
    hideLoading?: boolean
  }
}

export {}