11 2023 档案

摘要:Vue项目在开发过程中,我们需要将一些跨组件使用的的数据在pinia中进行状态管理,组件在初始化的时候我们能通过onMounted,computed,watch,watchEffect获取到存储在pinia state中的内容,有一些特殊情况,在组件初始化之后我们无法通过以上四种情况获取state中 阅读全文
posted @ 2023-11-19 11:49 热心市民~菜先生 阅读(1147) 评论(0) 推荐(0) 编辑
摘要:<template> <div class="main-container" :class="{'show-scroll':targetIsVisible}"> <div :style="{height:frameHeight+'px'}" class="main-content" :class=" 阅读全文
posted @ 2023-11-16 20:49 热心市民~菜先生 阅读(1481) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示