Skip to content

Commit 5543822

Browse files
authored
Merge pull request #214 from 477800969/patch-2
Update forms.md
2 parents 06cdde4 + 3c22276 commit 5543822

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vuex/forms.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ order: 12
1111
```
1212

1313

14-
假设 `obj` 计算的属中返回一个对象,在用户输入时,`v-modle`会尝试直接修改`obj.message`。在严格模式下,因为修改不在Vuex mutation handler中执行,将会抛出一个错误。
14+
假设 `obj` 计算的属中返回一个对象,在用户输入时,`v-model`会尝试直接修改`obj.message`。在严格模式下,因为修改不在Vuex mutation handler中执行,将会抛出一个错误。
1515

1616
用“Vuex思维”去处理是给`<input>`绑定value(值),然后帧听`<input>``change`事件,并在回调中调用action:
1717

@@ -45,7 +45,7 @@ mutations: {
4545

4646
### 双向计算属性
4747

48-
必须承认,上述比`v-modle`+本机状态(local state)啰嗦得多,以及从`v-modle`中弃用了一些有用的功能。使用 setter 双向计算属性的另一种方法:
48+
必须承认,上述比`v-model`+本机状态(local state)啰嗦得多,以及从`v-model`中弃用了一些有用的功能。使用 setter 双向计算属性的另一种方法:
4949

5050
``` js
5151
// ...

0 commit comments

Comments
 (0)