# cuspinia **Repository Path**: tiandashu/cuspinia ## Basic Information - **Project Name**: cuspinia - **Description**: pinia源码和 router 源码 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-18 - **Last Updated**: 2024-11-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### pinia 源码 - createPinia()创建全局的 store,通过 app.provide() 透传给组件 - defineStore() - 通过传入唯一 id 创建,天然的模块化 - 通过 getCurrentInstance() 获取当前组件的实例,instance.inject() 获取全局 store - 通过 id 获取到当前模块的 store ### - 如何实现不用.value 访问 -