zs
2025-05-20 c2bac53ff77d91dfffb4bda9b0bcbf6556fda9a1
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)
}