fix(性能测试): 查看报告报错

This commit is contained in:
CaptainB 2021-11-13 17:06:04 +08:00 committed by 刘瑞斌
parent 32f471627d
commit f8f4578c6c
1 changed files with 5 additions and 5 deletions

View File

@ -5,10 +5,10 @@
<el-select v-model="currentInstance" placeholder="" size="small" style="width: 100%"
@change="changeInstance(currentInstance)">
<el-option
v-for="item in resource"
:key="item.resourceId"
:label="item.resourceName"
:value="item.resourceId">
v-for="item in resource"
:key="item.resourceId"
:label="item.resourceName"
:value="item.resourceId">
</el-option>
</el-select>
</el-col>
@ -73,7 +73,7 @@ export default {
this.init = false;
}
if (!this.currentInstance) {
this.currentInstance = this.resource[0].resourceId;
this.currentInstance = this.resource[0]?.resourceId;
}
this.page = data.map(item => item.resourceId).reduce((result, curr) => {
result[curr] = 1;