摘要: getCurrentInstance 获取当前组件实例 import { getCurrentInstance } from "vue"; const instance = getCurrentInstance(); ctx 当前组件的上下文,只能在开发环境下使用,生产环境下的 ctx 将访问不到, 阅读全文
posted @ 2022-08-31 16:27 Magi黄元 阅读(543) 评论(0) 推荐(0) 编辑