Skip to content

Commit

Permalink
bug:流水线描述内容过长导致编辑后发布报错500 TencentBlueKing#11404
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 29446
  • Loading branch information
vhwweng committed Jan 16, 2025
1 parent 6ef228b commit abe68c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script>
import { string } from 'yaml/dist/schema/common/string'
import atomFieldMixin from '../atomFieldMixin'
export default {
name: 'vuex-textarea',
Expand All @@ -11,6 +12,10 @@
hoverUnfold: {
type: Boolean,
default: false
},
maxlength: {
type: string,
default: ''
}
},
methods: {
Expand All @@ -28,7 +33,7 @@
}
},
render (h) {
const { value, readOnly, handleInput, name, handleBlur, title, clickUnfold, hoverUnfold, placeholder, disabled } = this
const { value, readOnly, handleInput, name, handleBlur, title, clickUnfold, hoverUnfold, placeholder, disabled, maxlength } = this
return (
<textarea
placeholder={placeholder}
Expand All @@ -39,6 +44,7 @@
name={name}
disabled={readOnly || disabled}
value={value}
maxlength={maxlength}
/>
)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
:disabled="!editable"
name="desc"
:value="pipelineSetting.desc"
maxlength="100"
:placeholder="$t('pipelineDescInputTips')"
v-validate.initial="'max:100'"
:handle-change="handleBaseInfoChange"
Expand Down

0 comments on commit abe68c7

Please sign in to comment.