Преглед на файлове

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

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){