From e2d9978fe885d7855ad873d7f05cc98d00b4dcf0 Mon Sep 17 00:00:00 2001 From: 龚焕茏 <2842157468@qq.com> Date: 星期二, 16 七月 2024 14:14:36 +0800 Subject: [PATCH] feat:默认选中当前部门 --- src/views/answer/list.vue | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/views/answer/list.vue b/src/views/answer/list.vue index 3c8122c..b9a849b 100644 --- a/src/views/answer/list.vue +++ b/src/views/answer/list.vue @@ -74,7 +74,9 @@ this.listLoading = true examPaperAnswerApi.page(this.queryParam).then(data => { const re = data.response - this.avgSource = re.list[0].avgSource + if (re.list.length>0){ + this.avgSource = re.list[0].avgSource + } this.tableData = re.list this.total = re.total this.queryParam.pageIndex = re.pageNum -- Gitblit v1.8.0