-
Notifications
You must be signed in to change notification settings - Fork 506
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
增加构建详情的查看配置项,在构建详情界面点击插件时,默认进入的是 日志 or 配置 Tab页面。 #10808 #10884
Conversation
# Reviewed, transaction id: 16458
# Reviewed, transaction id: 18494
e9d49ac
to
e6961e7
Compare
…o issue_10808 # Reviewed, transaction id: 18496
# Reviewed, transaction id: 18511
@@ -132,6 +132,7 @@ | |||
<plugin | |||
:exec-detail="execDetail" | |||
:editing-element-pos="editingElementPos" | |||
:properties="['CONFIG', 'LOG', 'ARTIFACT']" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
数组,对象这种不要直接写在属性里面,这样每次diff都会导致Props不一致, 用一个computed属性存起来
# Reviewed, transaction id: 18660
# Reviewed, transaction id: 18662
}, | ||
properties: { | ||
handler (newValue) { | ||
if (JSON.stringify(newValue) === JSON.stringify(['CONFIG', 'LOG', 'ARTIFACT'])) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
不要用这种方式直接去比较数组是否一致,虽然这个数组长度不多,问题不大,同样的原理,这种用join性能还好一些
newValue.join('') === ['CONFIG', 'LOG', 'ARTIFACT'].join(''), 而且我看这个默认值出现多次了,可以统一用个变量存起来,也后续方便维护
# Reviewed, transaction id: 18879
…o issue_10808 # Reviewed, transaction id: 21647
# Reviewed, transaction id: 21709
@@ -257,6 +257,7 @@ | |||
return ['RUNNING', 'QUEUE'].includes(this.execDetail?.status) | |||
}, | |||
panels () { | |||
console.log(this.execDetail, '------------------', this.curProject) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个去掉
# Reviewed, transaction id: 21752
# Reviewed, transaction id: 21851
# Reviewed, transaction id: 21886
#10808