# vuex-uniapp-persistence

> uniapp vue2 vuex 持久化

Latest version **1.0.1** (published 2022-12-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install vuex-uniapp-persistence
pnpm add vuex-uniapp-persistence
yarn add vuex-uniapp-persistence
bun add vuex-uniapp-persistence
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-12-03 |
| First published | 2022-11-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | 万少 |
| Maintainers | yeah126139163 |
| Keywords | uniapp, vuex, uniapp, 本地存储 |

## Links

- npm: https://www.npmjs.com/package/vuex-uniapp-persistence
- Repository: https://github.com/itcastWsy/vuex-uniapp-persistence
- Homepage: https://github.com/itcastWsy/vuex-uniapp-persistence#readme
- Issues: https://github.com/itcastWsy/vuex-uniapp-persistence/issues
- npm.io page: https://npm.io/package/vuex-uniapp-persistence

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.21

## Recent versions

- 1.0.1 (latest) — 2022-12-03
- 1.0.0 — 2022-11-19

## README

# 快速上手

## 安装

```sh
npm i vuex-uniapp-persistence
```

## 引入

`store.js` 引入

```js
// 页面路径：store/index.js
import Vue from "vue";
import Vuex from "vuex";
import persistence from "./plugins/persistence";
Vue.use(Vuex);
const store = new Vuex.Store({
  // 使用模块
  plugins: [persistence()],
});
export default store;
```

## api

### persistence(key)

**key** 是你设置 本地存储的 key 的名称，如果不传，默认就是 `vuex-uniapp-persistence`

## 更新日志

### 1.0.1

将本地存储完全替换 state 修改为 合并本地存取和 state 融合到 vuex 中

## 联系我

- yeah126139163@163.com
- https://github.com/itcastWsy/vuex-uniapp-persistence

---
_Source: https://npm.io/package/vuex-uniapp-persistence · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
