Vue超简单的全局状态管理 - Pinia的最佳实践
1. 安装yarn add pinia# or with npmnpm install pinia// vue3中import { createPinia } from 'pinia'app.use(createPinia())2.store2.1 创建文件import { defineStore } from 'pinia'export const useCounterStore = defineStore({ id: 'count', state: () =>












