随笔分类 - pinia
摘要:// 1 main.current++ // 2 main.$patch({ current: 22, name: '妹妹' }) // 3 main.$patch(state => { // state.current++, (state.name = 'hahF') // }) // 4 mai
阅读全文
摘要:pinia 安装 官网: https://pinia.vuejs.org/zh/introduction.html 安装: npm i pinia -S // main.ts import { createApp } from 'vue' import { createPinia } from 'p
阅读全文