Переглянути джерело

版本信息添加明细为空提示

liucf 6 роки тому
батько
коміт
ce4fcc9e86
1 змінених файлів з 7 додано та 0 видалено
  1. 7 0
      src/components/icss/VersionDesc.vue

+ 7 - 0
src/components/icss/VersionDesc.vue

@@ -140,6 +140,13 @@
         this.showBox = true;
       },
       comfirn(){//记得清空modiId
+        if(!this.form.title.trim() || !this.form.description.trim()){
+          this.$message({
+            message:'请填写相关信息',
+            type:'warning'
+          });
+          return
+        }
         // 修改--直接调修改接口;复制--新增
           if(this.modiId){//修改
             if(!this.isCopy){