zs
2025-04-30 b39af0f5e4e440f87ed40a03bd5e5cba255fe405
1
2
3
4
5
6
7
8
9
import { ref, provide, inject } from 'vue'
 
export const createProvide = (key: string, methods: Record<string, any>) => {
  provide(key, methods)
}
 
export const useInject = (key: string) => {
  return inject(key)
}