ux-storage

1.0.7 • Public • Published

用法

import { useStorage,createStorage,StorageType } from "vue3-storage";
createStorage({namespace:'pro',storage: StorageType.Local}) 设置命名空间及session或local
const storage = useStorage()
storage.setStorageSync('aa',data) 设置缓存
storage.getStorageSync('aa') 获取缓存

Readme

Keywords

Package Sidebar

Install

npm i ux-storage

Weekly Downloads

1

Version

1.0.7

License

ISC

Unpacked Size

14.3 kB

Total Files

4

Last publish

Collaborators

  • houqiangxie