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