zs
2025-05-14 92e586e3ea03f4c70d12f8d5a2d47e4ae3f8f5f6
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)
}