Skip to content

Commit 009f4f9

Browse files
zhuscatktsn
authored andcommitted
fix translation (#836)
1 parent 779d967 commit 009f4f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/zh-cn/modules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ store.registerModule(['nested', 'myModule'], {
239239
- 创建多个 store,他们公用同一个模块
240240
- 在一个 store 中多次注册同一个模块
241241

242-
如果我们使用一个纯对象来声明模块的状态,那么这个状态对象会通过引用被共享,导致状态对象被修改时会 store 或模块间数据互相污染的问题。
242+
如果我们使用一个纯对象来声明模块的状态,那么这个状态对象会通过引用被共享,导致状态对象被修改时 store 或模块间数据互相污染的问题。
243243

244244
实际上这和 Vue 组件内的 `data` 是同样的问题。因此解决办法也是相同的——使用一个函数来声明模块状态(仅 2.3.0+ 支持):
245245

0 commit comments

Comments
 (0)