Commit 82d90c4f8fc87aa80487b33167f12d4fb69acfb6
1 parent
98bf25b3
update Select example
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
examples/routers/select.vue
| ... | ... | @@ -7,7 +7,7 @@ |
| 7 | 7 | remote |
| 8 | 8 | :remote-method="remoteMethod1" |
| 9 | 9 | :loading="loading1"> |
| 10 | - <Option v-for="option in options1" :value="option.value" :key="new Date()">{{option.label}}</Option> | |
| 10 | + <Option v-for="(option, index) in options1" :value="option.value" :key="index">{{option.label}}</Option> | |
| 11 | 11 | </Select> |
| 12 | 12 | </Col> |
| 13 | 13 | <Col span="12"> |
| ... | ... | @@ -18,7 +18,7 @@ |
| 18 | 18 | remote |
| 19 | 19 | :remote-method="remoteMethod2" |
| 20 | 20 | :loading="loading2"> |
| 21 | - <Option v-for="option in options2" :value="option.value" :key="new Date()">{{option.label}}</Option> | |
| 21 | + <Option v-for="(option, index) in options2" :value="option.value" :key="index">{{option.label}}</Option> | |
| 22 | 22 | </Select> |
| 23 | 23 | </Col> |
| 24 | 24 | </Row> | ... | ... |