From 82d90c4f8fc87aa80487b33167f12d4fb69acfb6 Mon Sep 17 00:00:00 2001 From: 梁灏 <admin@aresn.com> Date: Fri, 14 Jul 2017 14:02:55 +0800 Subject: [PATCH] update Select example --- examples/routers/select.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/routers/select.vue b/examples/routers/select.vue index 4292eeb..f1fa98d 100644 --- a/examples/routers/select.vue +++ b/examples/routers/select.vue @@ -7,7 +7,7 @@ remote :remote-method="remoteMethod1" :loading="loading1"> - <Option v-for="option in options1" :value="option.value" :key="new Date()">{{option.label}}</Option> + <Option v-for="(option, index) in options1" :value="option.value" :key="index">{{option.label}}</Option> </Select> </Col> <Col span="12"> @@ -18,7 +18,7 @@ remote :remote-method="remoteMethod2" :loading="loading2"> - <Option v-for="option in options2" :value="option.value" :key="new Date()">{{option.label}}</Option> + <Option v-for="(option, index) in options2" :value="option.value" :key="index">{{option.label}}</Option> </Select> </Col> </Row> -- libgit2 0.21.4