Skip to content

Commit

Permalink
feat:stage 审核支持 checklist 确认场景 TencentBlueKing#10920
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 20719
  • Loading branch information
useryuyu committed Oct 15, 2024
1 parent 8b52f7b commit 1a414c2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,10 @@
return new Promise((resolve, reject) => {
// 校验必填
const errorKeys = []
this.params.forEach(({ required, valueType, value, key }) => {
console.log(this.params, '?????????')
this.params.forEach(({ required, valueType, value, key, chineseName }) => {
if (required) {
key = (key || '').replace(/^variables\./, '')
key = chineseName || (key || '').replace(/^variables\./, '')
if (typeof value === 'undefined' || value === '') {
errorKeys.push(key)
}
Expand Down Expand Up @@ -130,6 +131,7 @@
.review-param-gap {
display: inline-block;
min-width: 28px;
height: 18px;
&.param-require:after {
height: 8px;
line-height: 1;
Expand Down

0 comments on commit 1a414c2

Please sign in to comment.