Skip to content

[zh-cn] synced from #b206933 to #bb76bfd #993

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 20, 2017
Merged

[zh-cn] synced from #b206933 to #bb76bfd #993

merged 3 commits into from
Oct 20, 2017

Conversation

Jinjiang
Copy link
Member

@Jinjiang Jinjiang commented Oct 16, 2017

ref: /docs/en/* parts of b206933...bb76bfd

@Jinjiang Jinjiang added the documentation Improvements or additions to documentation label Oct 16, 2017
@Jinjiang Jinjiang requested a review from Justineo October 16, 2017 16:19
@@ -268,6 +268,8 @@ store.registerModule(['nested', 'myModule'], {

你也可以使用 `store.unregisterModule(moduleName)` 来动态卸载模块。注意,你不能使用此方法卸载静态模块(即创建 store 时声明的模块)。

在注册一个 module 时,你很有可能想保留过去的 state,例如从一个服务端渲染的应用保留 state。你可以通过 `preserveState` 选项将其归档:`store.registerModule('a', module, { preserveState: true })`。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

注册一个 module?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@Jinjiang Jinjiang merged commit 1234464 into vuejs:dev Oct 20, 2017
@Jinjiang Jinjiang deleted the sync-b206933-bb76bfd branch October 20, 2017 03:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants