Browse Source

Merge pull request #441 from hotcoffie/wvp-28181-2.0

修复前端一处v-for没有key的警告
pull/444/head
648540858 3 years ago
committed by GitHub
parent
commit
a0462055de
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      web_src/src/components/control.vue
  2. 2
      web_src/src/components/live.vue

2
web_src/src/components/control.vue

@ -41,7 +41,7 @@
<template slot="extra">
<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>
</template>
<el-descriptions-item v-for="(value, key, index) in wvpServerConfig.sip">
<el-descriptions-item v-for="(value, key, index) in wvpServerConfig.sip" :key="key">
<template slot="label">
{{ getNameFromKey(key) }}
</template>

2
web_src/src/components/live.vue

@ -4,7 +4,7 @@
<el-header>
<uiHeader></uiHeader>
</el-header>
<el-container v-loading="loading" element-loading-text="拼命加载中">
<el-container v-loading="loading" element-loading-text="拼命加载中" style="margin: 0 20px;">
<el-aside width="300px" style="background-color: #ffffff">
<div style="text-align: center;padding-top: 20px;">设备列表</div>
<el-menu v-loading="loading">

Loading…
Cancel
Save