Forráskód Böngészése

提交题库页面bug

weiwenhai 6 éve
szülő
commit
c474eea345

+ 1 - 2
src/modules/questions/views/EditOtherQuestion.vue

@@ -393,9 +393,9 @@ export default {
         firstProperty: {},
         secondProperty: {}
       };
-      console.log("this.quesModel:", this.quesModel);
       if (
         this.quesModel.quesProperties === undefined ||
+        this.quesModel.quesProperties === null ||
         this.quesModel.quesProperties.length == 0
       ) {
         this.quesModel.quesProperties = [];
@@ -423,7 +423,6 @@ export default {
         }
       }
       //判断是否有二级属性
-      console.log("this.secondPropertyList:", this.secondPropertyList);
       if (
         this.secondPropertyList != undefined &&
         this.secondPropertyList.length > 0

+ 1 - 0
src/modules/questions/views/EditSelectQuestion.vue

@@ -493,6 +493,7 @@ export default {
       };
       if (
         this.quesModel.quesProperties === undefined ||
+        this.quesModel.quesProperties === null ||
         this.quesModel.quesProperties.length == 0
       ) {
         this.quesModel.quesProperties = [];