随笔分类 -  pinia

摘要:// 1 main.current++ // 2 main.$patch({ current: 22, name: '妹妹' }) // 3 main.$patch(state => { // state.current++, (state.name = 'hahF') // }) // 4 mai 阅读全文
posted @ 2022-11-12 16:29 前端之旅 阅读(170) 评论(0) 推荐(0) 编辑
摘要:pinia 安装 官网: https://pinia.vuejs.org/zh/introduction.html 安装: npm i pinia -S // main.ts import { createApp } from 'vue' import { createPinia } from 'p 阅读全文
posted @ 2022-11-12 16:17 前端之旅 阅读(579) 评论(0) 推荐(0) 编辑

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