摘要: 定义pinia存储容器 /stores/piniause-demo.js /** * 定义并导出容器 * 参数1:容器ID,必须唯一 * 参数2:配置对象 */ export const useDemoStore = defineStore('demo', { //state:类似组件data,用于 阅读全文
posted @ 2024-09-04 09:43 huihuihero 阅读(83) 评论(0) 推荐(0) 编辑