From 18c5c997051c5dc22eaa178846adc5ed371d38a7 Mon Sep 17 00:00:00 2001
From: zhengkunwang223 <31820853+zhengkunwang223@users.noreply.github.com>
Date: Sun, 9 Apr 2023 22:30:16 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9B=E5=BB=BA=E8=BF=90=E8=A1=8C?=
=?UTF-8?q?=E7=8E=AF=E5=A2=83=E5=A2=9E=E5=8A=A0=E7=89=88=E6=9C=AC=E6=A0=A1?=
=?UTF-8?q?=E9=AA=8C=20(#549)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/src/lang/modules/en.ts | 3 ++-
frontend/src/lang/modules/zh.ts | 1 +
frontend/src/views/website/runtime/create/index.vue | 5 +++--
3 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts
index 156768f21..de0c9d5a6 100644
--- a/frontend/src/lang/modules/en.ts
+++ b/frontend/src/lang/modules/en.ts
@@ -1276,7 +1276,7 @@ const message = {
runtime: {
runtime: 'Runtime',
image: 'Image',
- workDir: 'working directory',
+ workDir: 'Working directory',
create: 'Create runtime',
name: 'Name',
resource: 'Source',
@@ -1286,6 +1286,7 @@ const message = {
localHelper: 'The local operating environment needs to be installed by itself',
version: 'Version',
status: 'Status',
+ versionHelper: 'PHP version, e.g. v8.0',
},
};
diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts
index 12b430a91..92b89af12 100644
--- a/frontend/src/lang/modules/zh.ts
+++ b/frontend/src/lang/modules/zh.ts
@@ -1272,6 +1272,7 @@ const message = {
localHelper: '本地运行环境需要自行安装',
version: '版本',
status: '状态',
+ versionHelper: 'PHP的版本,例如 v8.0',
},
};
export default {
diff --git a/frontend/src/views/website/runtime/create/index.vue b/frontend/src/views/website/runtime/create/index.vue
index e7d56dadc..edf93a8d5 100644
--- a/frontend/src/views/website/runtime/create/index.vue
+++ b/frontend/src/views/website/runtime/create/index.vue
@@ -82,7 +82,7 @@
-
+
@@ -144,7 +144,7 @@ const rules = ref({
name: [Rules.appName],
resource: [Rules.requiredInput],
appId: [Rules.requiredSelect],
- version: [Rules.requiredInput],
+ version: [Rules.requiredInput, Rules.paramCommon],
image: [Rules.requiredInput, Rules.imageName],
});
@@ -268,6 +268,7 @@ const getRuntime = async (id: number) => {
const acceptParams = async (props: OperateRrops) => {
mode.value = props.mode;
+ initParam.value = false;
if (props.mode === 'create') {
runtime.value = {
name: '',