fix: 解决运行环境显示容器名称错误的问题 (#5733)

This commit is contained in:
zhengkunwang 2024-07-09 17:41:24 +08:00 committed by GitHub
parent 16d26077be
commit af9aef4d34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -227,7 +227,7 @@ watch(
watch(
() => runtime.name,
(newVal) => {
if (newVal) {
if (newVal && mode.value == 'create') {
runtime.params['CONTAINER_NAME'] = newVal;
}
},

View File

@ -210,7 +210,7 @@ const openDetail = (row: Runtime.Runtime) => {
operateRef.value.acceptParams({ type: row.type, mode: 'edit', id: row.id });
};
const openDelete = async (row: Runtime.Runtime) => {
const openDelete = (row: Runtime.Runtime) => {
RuntimeDeleteCheck(row.id).then(async (res) => {
const items = res.data;
if (res.data && res.data.length > 0) {

View File

@ -227,7 +227,7 @@ watch(
watch(
() => runtime.name,
(newVal) => {
if (newVal) {
if (newVal && mode.value == 'create') {
runtime.params['CONTAINER_NAME'] = newVal;
}
},

View File

@ -299,7 +299,7 @@ watch(
watch(
() => runtime.name,
(newVal) => {
if (newVal) {
if (newVal && mode.value == 'create') {
runtime.params['CONTAINER_NAME'] = newVal;
}
},