fix RepoBuildView loadJobData

This commit is contained in:
wxiaoguang 2022-10-14 20:56:46 +08:00 committed by Jason Song
parent 1cba52376a
commit bc6a2b2374

View File

@ -140,7 +140,7 @@ const sfc = {
toggleStepLogs(idx) { toggleStepLogs(idx) {
this.currentJobStepsStates[idx].expanded = !this.currentJobStepsStates[idx].expanded; this.currentJobStepsStates[idx].expanded = !this.currentJobStepsStates[idx].expanded;
if (this.currentJobStepsStates[idx].expanded) { if (this.currentJobStepsStates[idx].expanded) {
// this.loadJobData(); // FIXME: cannot call loadJobData more than once this.loadJobData();
} }
}, },
@ -261,8 +261,8 @@ const sfc = {
}, },
async loadJobData() { async loadJobData() {
if (this.loading) return;
try { try {
if (this.loading) return;
this.loading = true; this.loading = true;
const stepLogCursors = this.currentJobStepsStates.map((it, idx) => { const stepLogCursors = this.currentJobStepsStates.map((it, idx) => {