diff --git a/frontend/src/views/app-store/installed/detail/index.vue b/frontend/src/views/app-store/installed/detail/index.vue index d353e59b9..e035d0288 100644 --- a/frontend/src/views/app-store/installed/detail/index.vue +++ b/frontend/src/views/app-store/installed/detail/index.vue @@ -100,7 +100,7 @@ import { reactive, ref } from 'vue'; import Header from '@/components/drawer-header/index.vue'; import { useI18n } from 'vue-i18n'; import { FormInstance } from 'element-plus'; -import { Rules } from '@/global/form-rules'; +import { Rules, checkNumberRange } from '@/global/form-rules'; import { MsgSuccess } from '@/utils/message'; import i18n from '@/lang'; import { canEditPort } from '@/global/business'; @@ -128,6 +128,8 @@ const paramModel = ref({ }); const rules = reactive({ params: {}, + cpuQuota: [Rules.requiredInput, checkNumberRange(0, 99999)], + memoryLimit: [Rules.requiredInput, checkNumberRange(0, 9999999999)], }); const submitModel = ref({}); diff --git a/frontend/src/views/website/website/create/index.vue b/frontend/src/views/website/website/create/index.vue index 25ec8b42d..d560da400 100644 --- a/frontend/src/views/website/website/create/index.vue +++ b/frontend/src/views/website/website/create/index.vue @@ -202,7 +202,7 @@ :placeholder="$t('app.containerNameHelper')" > - + {{ $t('container.limitHelper') }} - +