From b0a93298cbd709f8ce883ff9a4cb0773554982f0 Mon Sep 17 00:00:00 2001 From: fan Date: Mon, 26 Feb 2024 15:38:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E5=88=99=E8=AF=A6=E6=83=85=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E7=A9=BA=E5=80=BC=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/contestDataManage/contestTaskScoreManage/edit.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/contestDataManage/contestTaskScoreManage/edit.vue b/src/views/contestDataManage/contestTaskScoreManage/edit.vue index 32e239aea..855a20ab2 100644 --- a/src/views/contestDataManage/contestTaskScoreManage/edit.vue +++ b/src/views/contestDataManage/contestTaskScoreManage/edit.vue @@ -72,7 +72,7 @@ export default { methods: { getData() { getContextScoreDetail(this.$route.query.id).then(resp => { - this.tableData = resp.data.rule.units; + this.tableData = resp.data.rule ? resp.data.rule.units : []; }).catch(() => { this.$message.error('初始化数据失败!'); }); }, goBack() {