Ver código fonte

版本说明字数限制改成500

liucf 6 anos atrás
pai
commit
375d42a2be
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      src/components/icss/VersionDesc.vue

+ 3 - 3
src/components/icss/VersionDesc.vue

@@ -54,7 +54,7 @@
           </el-form-item>
           <el-form-item label="内容:" prop="description" class="discDesc">
             <p v-if="showDesc" v-html="form.description" class="cont">{{form.description}}</p>
-            <el-input v-else type="textarea" :rows="3" placeholder="请输入内容" v-model="form.description" maxlength="120" @keydown.native="contentInp"></el-input>
+            <el-input v-else type="textarea" :rows="3" placeholder="请输入内容" v-model="form.description" maxlength="500" @keydown.native="contentInp"></el-input>
           </el-form-item>
           <el-button class="disclButn1" size="small" type="primary" @click="comfirn('form')">确定</el-button>
           <!-- <el-button class="disclButn can" size="small" type="primary" @click="cancel">取消</el-button> -->
@@ -85,8 +85,8 @@
         if(!value){
           return callback(new Error('请输入标题'));
         }
-        if (value.length >= 120) {
-           this.form.description = value.substr(0, 120);
+        if (value.length >= 500) {
+           this.form.description = value.substr(0, 500);
            this.$message({
              showClose: true,
              type: 'warning',