摘要: 一文理解vuex和pinia的区别 阅读全文
posted @ 2022-12-27 20:49 RHCHIK 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 一、使用习惯1(模块化): 1、文件目录: 2、userStore.ts import { Module } from 'vuex'; // import {setStorage,getStorage} from "../../util/common"; export default { names 阅读全文
posted @ 2022-12-27 11:52 RHCHIK 阅读(1156) 评论(0) 推荐(0) 编辑
摘要: /** * 存储localStorage */ export const setStore = (params: any) => { const {name, content, type, datetime} = params const obj = { dataType: typeof (cont 阅读全文
posted @ 2022-12-27 09:50 RHCHIK 阅读(60) 评论(0) 推荐(0) 编辑