tj
2025-05-26 f5f314e167906ec5b15d4f56568408982178caa1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// composables/useGlobal.ts
import { getCurrentInstance } from 'vue'
 
export function useGlobal() {
  const instance = getCurrentInstance()
  const $message = instance?.proxy?.$message
  const $http = instance?.proxy?.$http
  const $util = instance?.proxy?.$util 
  const $store = instance?.proxy?.$store 
 
  return {
    $message,
    $http,
    $util,
    $store,
  }
}