1.0.7 • Published 11 months ago
store-along v1.0.7
🚧 黄艺辉
🚧 安装
- 复制代码(桌面 cmd 运行)
npm install store-along
🚧 使用
import storeAlong from 'store-along'
export default createStore({
plugins: [
//使用方法1:不传表示全部缓存
storeAlong()
//使用方法2:数组写入需要缓存的模块key
storeAlong({
cacheKeys:['user']
})
]
})