From 8da5057fe6a841dab22d79f5b208be193054e0b5 Mon Sep 17 00:00:00 2001 From: aringlai Date: Fri, 16 Apr 2021 12:52:45 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20vuex=E6=8F=92=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/reference/plugin/plugins/vuex.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/reference/plugin/plugins/vuex.md b/docs/reference/plugin/plugins/vuex.md index 9d11c96c..7f962078 100644 --- a/docs/reference/plugin/plugins/vuex.md +++ b/docs/reference/plugin/plugins/vuex.md @@ -49,6 +49,13 @@ store.getters[GETTER_TYPES.user.address] store.commit(MUTATION_TYPES.counter.increment) 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 ### MUTATION_TYPES * 类型 `Object`