fix(性能测试): 查看报告报错
This commit is contained in:
parent
32f471627d
commit
f8f4578c6c
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue