Skip to content

Commit

Permalink
fix(frontend): 服务申请时集群名称和集群别名编辑后值没有更新 #8942
Browse files Browse the repository at this point in the history
  • Loading branch information
hLinx committed Jan 9, 2025
1 parent 2c4b1a5 commit f082cfb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions dbm-ui/frontend/src/locales/zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -3922,5 +3922,6 @@
"Influxdb实例": "Influxdb实例",
"Doris集群": "Doris集群",
"单据协作人": "单据协作人",
"集群标识,支持小写字母、数字、连字符 -(连字符不可打头)": "集群标识,支持小写字母、数字、连字符 -(连字符不可打头)",
"这行勿动!新增翻译请在上一行添加!": ""
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
property="details.cluster_alias"
:rules="rules">
<BkInput
v-model="modelValue"
class="item-input"
:disabled="!bizId"
:maxlength="63"
:model-value="modelValue"
:placeholder="t('用于区分不同集群_可随时修改')"
show-word-limit />
</BkFormItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
required
:rules="rules">
<BkInput
v-model="modelValue"
v-bk-tooltips="{
trigger: 'click',
placement: 'top',
Expand All @@ -26,7 +27,6 @@
}"
class="item-input"
:maxlength="63"
:model-value="modelValue"
:placeholder="clusterNamePlaceholder"
show-word-limit />
</BkFormItem>
Expand All @@ -40,7 +40,7 @@

const modelValue = defineModel<string>();

const clusterNamePlaceholder = t('以小写字母或数字开头,支持小写英文字母、数字、连字符-');
const clusterNamePlaceholder = t('集群标识,支持小写字母、数字、连字符 -(连字符不可打头)');

const rules = [
{
Expand Down

0 comments on commit f082cfb

Please sign in to comment.