222
schangxiang@126.com
2025-05-20 f9c8c6a144a7dd526a41665c27c2e611513b93f4
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)
}