mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
docs: vuex插件
This commit is contained in:
parent
2242872c5c
commit
8da5057fe6
@ -49,6 +49,13 @@ store.getters[GETTER_TYPES.user.address]
|
|||||||
store.commit(MUTATION_TYPES.counter.increment)
|
store.commit(MUTATION_TYPES.counter.increment)
|
||||||
store.dispatch(ACTION_TYPES.user.login)
|
store.dispatch(ACTION_TYPES.user.login)
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```js
|
||||||
|
import { MUTATION_TYPES, GETTER_TYPES, ACTION_TYPES, store } from '@fesjs/fes';
|
||||||
|
store.getters[GETTER_TYPES.user.address]
|
||||||
|
store.commit(MUTATION_TYPES.counter.increment)
|
||||||
|
store.dispatch(ACTION_TYPES.user.login)
|
||||||
|
```
|
||||||
## API
|
## API
|
||||||
### MUTATION_TYPES
|
### MUTATION_TYPES
|
||||||
* 类型 `Object`
|
* 类型 `Object`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user