摘要: 安装 Pinia:在 Vue 项目中,通过包管理工具npm安装 Pinia。 创建 Store:使用defineStore函数创建一个 Store。在 Store 中定义状态、getter、action 和 mutation 等。 在组件中使用 Store:在 Vue 组件中,通过useStore函 阅读全文
posted @ 2025-04-02 17:44 Look_Back 阅读(11) 评论(0) 推荐(0)