浏览代码

see also #245

ali 2 年之前
父节点
当前提交
68520de1ef
共有 1 个文件被更改,包括 9 次插入 和 0 次删除
  1. 9 0
      src/pages/User/Profile/sessionInfo.vue

+ 9 - 0
src/pages/User/Profile/sessionInfo.vue

@@ -315,6 +315,15 @@ export default {
         })
     },
     submitAssignment () {
+      const answerText = FormBuilderAssist.getInputsByName(this.submitAssignmentInputs, 'answer_text').value
+      if (!answerText) {
+        this.$q.notify({
+          type: 'negative',
+          message: 'متن پاسخ را کامل کنید.',
+          position: 'top'
+        })
+        return
+      }
       this.entityLoading = true
       this.submitAssignmentLoading = true
       this.$refs.entityCreateSubmitAssignment.createEntity(false)