Commit a0462055de5ddeeaf1d104c22d3943545d0785ab
Committed by
GitHub
Merge pull request #441 from hotcoffie/wvp-28181-2.0
修复前端一处v-for没有key的警告
Showing
2 changed files
with
2 additions
and
2 deletions
web_src/src/components/control.vue
| @@ -41,7 +41,7 @@ | @@ -41,7 +41,7 @@ | ||
| 41 | <template slot="extra"> | 41 | <template slot="extra"> |
| 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> | 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 | </template> | 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 | <template slot="label"> | 45 | <template slot="label"> |
| 46 | {{ getNameFromKey(key) }} | 46 | {{ getNameFromKey(key) }} |
| 47 | </template> | 47 | </template> |
web_src/src/components/live.vue
| @@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
| 4 | <el-header> | 4 | <el-header> |
| 5 | <uiHeader></uiHeader> | 5 | <uiHeader></uiHeader> |
| 6 | </el-header> | 6 | </el-header> |
| 7 | - <el-container v-loading="loading" element-loading-text="拼命加载中"> | 7 | + <el-container v-loading="loading" element-loading-text="拼命加载中" style="margin: 0 20px;"> |
| 8 | <el-aside width="300px" style="background-color: #ffffff"> | 8 | <el-aside width="300px" style="background-color: #ffffff"> |
| 9 | <div style="text-align: center;padding-top: 20px;">设备列表</div> | 9 | <div style="text-align: center;padding-top: 20px;">设备列表</div> |
| 10 | <el-menu v-loading="loading"> | 10 | <el-menu v-loading="loading"> |