![](../../asset/images/user/BgImg_default.jpg)
简介
该用户还未填写简介
擅长的技术栈
未填写擅长的技术栈
可提供的服务
暂无可提供的服务
getCurrentInstance
getCurrentInstancegetCurrentInstance支持访问内部组件实例。WARNINGgetCurrentInstance只暴露给高阶使用场景,典型的比如在库中。强烈反对在应用的代码中使用getCurrentInstance。请不要把它当作在组合式 API 中获取this的替代方案来使用。import { getCurrentInstance } from 'vue'cons
vue3中reactive定义的引用类型直接赋值导致数据失去响应式
vue3中reactive定义的引用类型直接赋值导致数据失去响应式<script setup>import {reactive,onMounted} from 'vue'const userMenu=reactive([])onMounted(()=>{userMenu=[1,2,3]})</script><template><div>示例:{
getCurrentInstance
getCurrentInstancegetCurrentInstance支持访问内部组件实例。WARNINGgetCurrentInstance只暴露给高阶使用场景,典型的比如在库中。强烈反对在应用的代码中使用getCurrentInstance。请不要把它当作在组合式 API 中获取this的替代方案来使用。import { getCurrentInstance } from 'vue'cons
暂无文章信息