Skip to content
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

Merged
merged 14 commits into from
Oct 29, 2024

Conversation

useryuyu
Copy link
Collaborator

@tencentblueking-adm
Copy link

tencentblueking-adm commented Sep 14, 2024

CLA assistant check
All committers have signed the CLA.

@@ -132,6 +132,7 @@
<plugin
:exec-detail="execDetail"
:editing-element-pos="editingElementPos"
:properties="['CONFIG', 'LOG', 'ARTIFACT']"
Copy link
Collaborator

Choose a reason for hiding this comment

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

数组,对象这种不要直接写在属性里面,这样每次diff都会导致Props不一致, 用一个computed属性存起来

},
properties: {
handler (newValue) {
if (JSON.stringify(newValue) === JSON.stringify(['CONFIG', 'LOG', 'ARTIFACT'])) {
Copy link
Collaborator

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(''), 而且我看这个默认值出现多次了,可以统一用个变量存起来,也后续方便维护

@@ -257,6 +257,7 @@
return ['RUNNING', 'QUEUE'].includes(this.execDetail?.status)
},
panels () {
console.log(this.execDetail, '------------------', this.curProject)
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个去掉

@fcfang123 fcfang123 closed this Oct 29, 2024
@fcfang123 fcfang123 reopened this Oct 29, 2024
@bkci-bot bkci-bot merged commit 29fcd3e into TencentBlueKing:master Oct 29, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants