Skip to content

Commit

Permalink
fix: 共享到商店侧栏标签文案优化 --story=136520635
Browse files Browse the repository at this point in the history
  • Loading branch information
ywywZhou committed Jan 3, 2025
1 parent 1c243e4 commit 9b7fa47
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions frontend/desktop/src/config/i18n/cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -1812,6 +1812,7 @@ const cn = {
'场景名称': '场景名称',
'场景标识': '场景标识',
'场景分类': '场景分类',
'场景标签': '场景标签',
'风险级别': '风险级别',
'使用说明': '使用说明',
'高': '高',
Expand Down
1 change: 1 addition & 0 deletions frontend/desktop/src/config/i18n/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,7 @@ const en = {
'场景名称': 'Scene Name',
'场景标识': 'Scene Identifier',
'场景分类': 'Scene Category',
'场景标签': 'Scene Labels',
'风险级别': 'Risk Level',
'使用说明': 'Instructions',
'高': 'High',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
:form-data="formData">
</SharedCategorySelect>
</bk-form-item>
<bk-form-item :label="$t('标签')" :desc="$t('场景使用者通过标签可以快速找到同一类场景')">
<bk-form-item :label="$t('场景标签')" :desc="$t('场景使用者通过标签可以快速找到同一类场景')">
<SharedTagSelect
v-model="formData.labels"
:loading="marketLoading"
Expand Down Expand Up @@ -271,9 +271,8 @@
},
onSceneNameSelect (val) {
const selectInfo = this.recordList.find(item => item.id === val) || {}
const { risk_level: riskLevel, usage_content: content } = selectInfo
const { usage_content: content } = selectInfo
Object.assign(this.formData, selectInfo, {
risk_level: String(riskLevel),
usage_content: { content }
})
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1723,6 +1723,7 @@
min-width: 88px;
text-align: center;
font-size: 14px;
color: #63656e;
background: #ffffff;
border: 1px solid #c4c6cc;
border-radius: 3px;
Expand Down

0 comments on commit 9b7fa47

Please sign in to comment.