From 2e80903f72d58a86cd13c2a24a8d3132d015073e Mon Sep 17 00:00:00 2001
From: GuLiMmo <2820890765@qq.com>
Date: Tue, 23 Jan 2024 14:00:41 +0800
Subject: [PATCH] 更新
---
src/views/evaluate/components/IndividualTaskPublic.vue | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/views/evaluate/components/IndividualTaskPublic.vue b/src/views/evaluate/components/IndividualTaskPublic.vue
index 0965522..daeec8e 100644
--- a/src/views/evaluate/components/IndividualTaskPublic.vue
+++ b/src/views/evaluate/components/IndividualTaskPublic.vue
@@ -147,7 +147,11 @@
console.log(this.params.data.pollingPersons);
const pollingPersons = this.params.data.pollingPersons
this.form.pollingPersons = pollingPersons !== "0" ? pollingPersons.split(',') : []
- this.form.votePersonObjInfo = JSON.parse(this.params.data.votePersonObjInfo) || []
+ if (typeof this.params.data.votePersonObjInfo === 'object') {
+ this.form.votePersonObjInfo = []
+ } else {
+ this.form.votePersonObjInfo = JSON.parse(this.params.data.votePersonObjInfo) || []
+ }
this.form.evaluateCutoffTimeStart = this.params.data.evaluateCutoffTimeStart || ''
this.form.evaluateCutoffTimeEnd = this.params.data.evaluateCutoffTimeEnd || ''
},
--
Gitblit v1.9.3