Browse Source

修正活動新建評量的creatorId不正確問題

upon 3 months ago
parent
commit
70558575d7
1 changed files with 5 additions and 2 deletions
  1. 5 2
      TEAMModelOS/ClientApp/src/view/learnactivity/htCreateEva.vue

+ 5 - 2
TEAMModelOS/ClientApp/src/view/learnactivity/htCreateEva.vue

@@ -385,14 +385,17 @@
 				if (!flag) {
 					return;
 				}
+				if(!localStorage.getItem('t_userInfo')){
+                    return;
+				}
 				let examId = this.$tools.guid();
 				let apiPapers = this.getPaperInfo(examId);
 				let requestData = {
 					jointEventId: this.$route.params.data.id,
 					jointGroupId: this.$route.params.jointGroupId,
 					jointScheduleId: this.$route.params.jointScheduleId,
-					jointExamId: "",
-					creatorId: this.$route.params.data.creatorId,
+					jointExamId: "",					
+					creatorId: JSON.parse(decodeURIComponent(localStorage.getItem('t_userInfo'), "utf-8")).id,
 					name: this.evaluationInfo.name,
 					source: this.evaluationInfo.source,
 					papers: apiPapers