import {provide,ref} from "vue"
let car = ref("奔驰")
祖: provide("car",car)
子孙:
import {inject} from "vue"
let car = inject("car")
import {provide,ref} from "vue"
let car = ref("奔驰")
祖: provide("car",car)
子孙:
import {inject} from "vue"
let car = inject("car")