Skip to content

Commit

Permalink
fix: 节点clone时勾选的输出变量clone逻辑异常问题修复 && 项目名统一规范调整 #ignore
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 14815
  • Loading branch information
ywywZhou committed Aug 9, 2024
1 parent 8c86d2f commit ca0507c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion frontend/desktop/src/config/i18n/cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -1834,7 +1834,7 @@ const cn = {
'产品官网': '产品官网',
'联系bk助手': '联系bk助手',
'蓝鲸桌面': '蓝鲸桌面',
'蓝鲸': '蓝鲸'
'蓝鲸智云': '蓝鲸智云'
}

export default cn
2 changes: 1 addition & 1 deletion frontend/desktop/src/config/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@ const en = {
'产品官网': 'Product Website',
'联系bk助手': 'Contact BK Assistant',
'蓝鲸桌面': 'BlueWhale Desktop',
'蓝鲸': 'BlueKing'
'蓝鲸智云': 'Tencent BlueKing'
}

export default en
Original file line number Diff line number Diff line change
Expand Up @@ -795,9 +795,6 @@
position: initial;
}
}
.rf-tag-form {
margin-left: 100px;
}
&:last-child {
margin-bottom: 0;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,6 @@
position: initial;
}
}
.rf-tag-form {
margin-left: 100px;
}
&:last-child {
margin-bottom: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion frontend/desktop/src/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const store = new Vuex.Store({
platformInfo: { // 项目全局配置
bkAppCode: window.APP_CODE,
name: window.APP_NAME || i18n.t('标准运维'),
brandName: window.RUN_VER_NAME || i18n.t('蓝鲸'),
brandName: window.RUN_VER_NAME || i18n.t('蓝鲸智云'),
...getStateFavicon(),
i18n: {}
},
Expand Down
9 changes: 8 additions & 1 deletion frontend/desktop/src/store/modules/template.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import tools from '@/utils/tools.js'
import validatePipeline from '@/utils/validatePipeline.js'
import axios from 'axios'
import i18n from '@/config/i18n/index.js'
import { STRING_LENGTH } from '@/constants/index.js'

const ATOM_TYPE_DICT = {
startpoint: 'EmptyStartEvent',
Expand Down Expand Up @@ -784,7 +785,13 @@ const template = {
Vue.set(source_info, location.id, info)
} else if (source_type === 'component_outputs') { // 新建输出变量
const constantsLen = Object.keys(state.constants).length
const varId = '${' + info[0] + '_' + random4() + '}'
let varId = ''
const length = STRING_LENGTH.VARIABLE_KEY_MAX_LENGTH - key.length
if (length >= 5) {
varId = `${key.slice(0, -1)}_${random4()}}`
} else {
varId = `${key.slice(0, 5 - length - 1)}_${random4()}}`
}
const varValue = tools.deepClone(item)
const changeObj = {
source_info: { [location.id]: info },
Expand Down

0 comments on commit ca0507c

Please sign in to comment.