Skip to content

Commit

Permalink
docs:edit README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
l-x-f committed Nov 17, 2021
1 parent 0bf1288 commit 0aece65
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ pnpm add pinia-persistedstate-plugin
The UMD build is also available on unpkg:

```html
<script src="https://unpkg.com/pinia-persistedstate-plugin/dist/pinia-persistedstate-plugin.umd.js
"></script>
<script src="https://unpkg.com/pinia-persistedstate-plugin/dist/pinia-persistedstate-plugin.umd.js"></script>
```

You can find the library on window.PiniaPersistedstatePlugin.
Expand Down
5 changes: 2 additions & 3 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ pnpm add pinia-persistedstate-plugin
## UMD

```html
<script src="https://unpkg.com/pinia-persistedstate-plugin/dist/pinia-persistedstate-plugin.umd.js
"></script>
<script src="https://unpkg.com/pinia-persistedstate-plugin/dist/pinia-persistedstate-plugin.umd.js"></script>
```

插件为 window 添加全局变量 PiniaPersistedstatePlugin
Expand Down Expand Up @@ -54,7 +53,7 @@ app.use(store).mount('#app')
```ts
export interface Options {
/**
* 存贮类型,默认为 `window.localStorage`
* 存储类型,默认为 `window.localStorage`
*/
storage: Storage
/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pinia-persistedstate-plugin",
"version": "0.0.6",
"version": "0.0.7",
"description": "A pinia plugin like vuex-persistedstate.",
"types": "dist/index.d.ts",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export interface Storage {
*/
export interface Options {
/**
* 存贮类型,默认为 `window.localStorage`
* 存储类型,默认为 `window.localStorage`
*/
storage?: Storage
/**
Expand Down

0 comments on commit 0aece65

Please sign in to comment.