zs
2025-04-29 55aa5390c5d9f67c3b0a506e2ce9b4466be7db4f
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)
}