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

Bug : 资源视图 - 命名空间 - 配额管理 内存简写显示错误 #2837

Open
wants to merge 2 commits into
base: v1.28.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bcs-ui/frontend/src/views/dashboard/namespace/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
</bk-input>
</div>
<div class="flex">
<span class="mr-[15px] text-[14px]">MEN</span>
<span class="mr-[15px] text-[14px]">MEM</span>
<bk-input
v-model="formData.quota.memoryRequests"
class="w-[250px]"
Expand Down Expand Up @@ -186,7 +186,7 @@ export default defineComponent({
validator() {
return Boolean(formData.value.quota.cpuRequests) >= 1 && Boolean(formData.value.quota.memoryRequests) >= 1;
},
message: $i18n.t('共享集群需设置MEN、CPU配额,且两者最小值不小于0'),
message: $i18n.t('共享集群需设置MEM、CPU配额,且两者最小值不小于0'),
trigger: 'blur',
},
] : [],
Expand Down
4 changes: 2 additions & 2 deletions bcs-ui/frontend/src/views/dashboard/namespace/namespace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
:precision="0">
<div class="group-text" slot="append">{{ $t('核') }}</div>
</bk-input>
<span class="mx-[10px]">MEN</span>
<span class="mx-[10px]">MEM</span>
<bk-input
v-model="setQuotaConf.quota.memoryRequests"
class="w-[200px]"
Expand Down Expand Up @@ -492,7 +492,7 @@ export default defineComponent({
return setQuotaConf.value.quota.cpuRequests && setQuotaConf.value.quota.memoryRequests
&& setQuotaConf.value.quota.cpuRequests !== 'NaN' && setQuotaConf.value.quota.memoryRequests !== 'NaN';
},
message: $i18n.t('请设置MEN、CPU配额,且两者最小值不小于0'),
message: $i18n.t('请设置MEM、CPU配额,且两者最小值不小于0'),
trigger: 'blur',
},
];
Expand Down