From 7f75ea06c246596cdf27679105e236bffd6983e4 Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Wed, 12 Apr 2023 18:58:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=98=B2=E7=81=AB=E5=A2=99=E7=A6=81=20p?= =?UTF-8?q?ing=20=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96=20(#601)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/container/compose/create/index.vue | 2 +- frontend/src/views/host/firewall/status/index.vue | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/container/compose/create/index.vue b/frontend/src/views/container/compose/create/index.vue index ec70118fa..2678e3b7a 100644 --- a/frontend/src/views/container/compose/create/index.vue +++ b/frontend/src/views/container/compose/create/index.vue @@ -199,7 +199,7 @@ const loadPath = async () => { }; const changePath = async () => { - composeFile.value = baseDir.value + '/docker/compose/' + form.name + '/docker-compose.yml'; + composeFile.value = baseDir.value + '/docker/compose/' + form.name + '/xxx'; }; type FormInstance = InstanceType; diff --git a/frontend/src/views/host/firewall/status/index.vue b/frontend/src/views/host/firewall/status/index.vue index 49a25bb0e..cd80aee19 100644 --- a/frontend/src/views/host/firewall/status/index.vue +++ b/frontend/src/views/host/firewall/status/index.vue @@ -100,6 +100,7 @@ const onOperate = async (operation: string) => { }; const onPingOperate = async (operation: string) => { + emit('update:maskShow', false); let operationHelper = operation === 'Enable' ? i18n.global.t('firewall.noPingHelper') : i18n.global.t('firewall.onPingHelper'); ElMessageBox.confirm(operationHelper, i18n.global.t('firewall.noPingTitle'), { @@ -110,6 +111,7 @@ const onPingOperate = async (operation: string) => { emit('update:loading', true); emit('update:status', 'running'); operation = operation === 'Disable' ? 'disablePing' : 'enablePing'; + emit('update:maskShow', true); await operateFire(operation) .then(() => { MsgSuccess(i18n.global.t('commons.msg.operationSuccess')); @@ -120,6 +122,7 @@ const onPingOperate = async (operation: string) => { }); }) .catch(() => { + emit('update:maskShow', true); onPing.value = oldStatus.value; }); };