sunlupeng 1 year ago
parent
commit
97e45b1519
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/HomeView/postInteract/detail.vue

+ 1 - 1
src/views/HomeView/postInteract/detail.vue

@@ -77,7 +77,7 @@ export default {
         save() {
             console.log(this.dataList);
             for(var i=0;i<this.dataList.length;i++){
-                if(!this.dataList[i].comment){
+                if(this.dataList[i].comment=='' || this.dataList[i].comment==[]){
                     this.$message.error('还有题目未完成,无法提交!');
                     return
                 }