Commit 9d70977c0b2f09ccaa7c051b08e30689a8421269

Authored by yangzhi
1 parent 5d0caf8d

修复bug:左边面试进度和右边的数据不一致

Showing 1 changed file with 1 additions and 1 deletions
src/views/dashboard/index.vue
@@ -345,7 +345,7 @@ export default { @@ -345,7 +345,7 @@ export default {
345 //右边统计数据 345 //右边统计数据
346 list.forEach((item) => { 346 list.forEach((item) => {
347 let index = this.staList.findIndex((t) => t.val == item.name); 347 let index = this.staList.findIndex((t) => t.val == item.name);
348 - if (index) { 348 + if (index>-1) {
349 this.staList[index].count = item.count; 349 this.staList[index].count = item.count;
350 } 350 }
351 }); 351 });