mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-07 22:16:16 +08:00
fix: 解决运行环境显示容器名称错误的问题 (#5733)
This commit is contained in:
parent
16d26077be
commit
af9aef4d34
4 changed files with 4 additions and 4 deletions
|
@ -227,7 +227,7 @@ watch(
|
||||||
watch(
|
watch(
|
||||||
() => runtime.name,
|
() => runtime.name,
|
||||||
(newVal) => {
|
(newVal) => {
|
||||||
if (newVal) {
|
if (newVal && mode.value == 'create') {
|
||||||
runtime.params['CONTAINER_NAME'] = newVal;
|
runtime.params['CONTAINER_NAME'] = newVal;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -210,7 +210,7 @@ const openDetail = (row: Runtime.Runtime) => {
|
||||||
operateRef.value.acceptParams({ type: row.type, mode: 'edit', id: row.id });
|
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) => {
|
RuntimeDeleteCheck(row.id).then(async (res) => {
|
||||||
const items = res.data;
|
const items = res.data;
|
||||||
if (res.data && res.data.length > 0) {
|
if (res.data && res.data.length > 0) {
|
||||||
|
|
|
@ -227,7 +227,7 @@ watch(
|
||||||
watch(
|
watch(
|
||||||
() => runtime.name,
|
() => runtime.name,
|
||||||
(newVal) => {
|
(newVal) => {
|
||||||
if (newVal) {
|
if (newVal && mode.value == 'create') {
|
||||||
runtime.params['CONTAINER_NAME'] = newVal;
|
runtime.params['CONTAINER_NAME'] = newVal;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -299,7 +299,7 @@ watch(
|
||||||
watch(
|
watch(
|
||||||
() => runtime.name,
|
() => runtime.name,
|
||||||
(newVal) => {
|
(newVal) => {
|
||||||
if (newVal) {
|
if (newVal && mode.value == 'create') {
|
||||||
runtime.params['CONTAINER_NAME'] = newVal;
|
runtime.params['CONTAINER_NAME'] = newVal;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue