Commit 4dcc7df555e0027adcea89aa2590eb56605398c2
1 parent
f635f9c3
修复前端一处v-for没有key的警告
Showing
1 changed file
with
1 additions
and
1 deletions
web_src/src/components/control.vue
| ... | ... | @@ -41,7 +41,7 @@ |
| 41 | 41 | <template slot="extra"> |
| 42 | 42 | <el-button style="float: right;" type="primary" size="mini" icon="el-icon-document-copy" title="点击拷贝" v-clipboard="JSON.stringify(wvpServerConfig.sip)|| ''" @success="$message({type:'success', message:'成功拷贝到粘贴板'})"></el-button> |
| 43 | 43 | </template> |
| 44 | - <el-descriptions-item v-for="(value, key, index) in wvpServerConfig.sip"> | |
| 44 | + <el-descriptions-item v-for="(value, key, index) in wvpServerConfig.sip" :key="key"> | |
| 45 | 45 | <template slot="label"> |
| 46 | 46 | {{ getNameFromKey(key) }} |
| 47 | 47 | </template> | ... | ... |