SanHQin 4 місяців тому
батько
коміт
b6f40f3220

+ 1 - 1
src/views/projectApply/components/studentProjectWordDetail.vue

@@ -613,7 +613,7 @@ export default {
           this.wordData.fund = JSON.parse(data.money);
 					this.wordData.opinion = data.opinion?JSON.parse(data.opinion):[];
 					this.wordData.attachment = data.attachment?JSON.parse(data.attachment):[];
-					this.wordData.promotion = data.promotion.indexOf(data.ProjectNo);
+					this.wordData.promotion = data.promotion?data.promotion.indexOf(data.ProjectNo):-1;
           this.wordData.create_at = formatDate(data.create_at)
           this.downWordData = {
             ...this.wordData,

+ 1 - 1
src/views/projectApply/components/studentProjectWordShow.vue

@@ -422,7 +422,7 @@
 
           <div
 					style="margin:0"
-            :class="downWordData.attachment.length > 0 ? 'bigBlock' : 'noFileBox'"
+            :class="downWordData.attachment && downWordData.attachment.length > 0 ? 'bigBlock' : 'noFileBox'"
           >
             <div
               class="fileBlock"