Skip to content

bug:流水线描述内容过长导致编辑后发布报错500 #11404 #11411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 17, 2025
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
hoverUnfold: {
type: Boolean,
default: false
},
maxlength: {
type: Number,
default: null
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

判断一下,如果没有maxlength下面的textarea就不要加上这个属性了,没必要弄个default值

}
},
methods: {
Expand All @@ -28,7 +32,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 +43,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