sunlupeng 1 年之前
父节点
当前提交
97e45b1519
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/views/HomeView/postInteract/detail.vue

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

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