From 67c0916b942dde31181d17da16d49ded6bb3825b Mon Sep 17 00:00:00 2001
From: wxg0103 <727495428@qq.com>
Date: Mon, 24 Apr 2023 13:49:33 +0800
Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?=
=?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B8=85=E7=A9=BA=E7=8E=AF=E5=A2=83=E6=A8=A1?=
=?UTF-8?q?=E5=9D=97=E4=BF=A1=E6=81=AF=EF=BC=8C=E6=B2=A1=E6=9C=89=E7=94=9F?=
=?UTF-8?q?=E6=95=88=E7=9A=84=E7=BC=BA=E9=99=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/components/environment/EnvironmentHttpConfig.vue | 7 ++++++-
.../environment/components/EnvironmentHttpConfig.vue | 9 +++++++--
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue b/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue
index 8adacbd689..0bbc7f5c9b 100644
--- a/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue
+++ b/framework/sdk-parent/frontend/src/components/environment/EnvironmentHttpConfig.vue
@@ -32,7 +32,7 @@
+ :obj="moduleObj" clearable :checkStrictly="true" multiple v-if="!loading" @clean="clean"/>
@@ -326,6 +326,10 @@ export default {
});
}
},
+ clean() {
+ this.condition.details = [];
+ this.condition.ids = [];
+ },
update() {
const index = this.httpConfig.conditions.findIndex((d) => d.id === this.condition.id);
this.validateSocket(this.condition.socket);
@@ -451,6 +455,7 @@ export default {
if (socket.startsWith("${")){
let split = socket.split(":");
this.condition.domain = split[0];
+ return true;
}
this.condition.port = url.port;
let path = url.pathname === "/" ? "" : url.pathname;
diff --git a/project-management/frontend/src/business/menu/environment/components/EnvironmentHttpConfig.vue b/project-management/frontend/src/business/menu/environment/components/EnvironmentHttpConfig.vue
index 464bf407f6..0298c08255 100644
--- a/project-management/frontend/src/business/menu/environment/components/EnvironmentHttpConfig.vue
+++ b/project-management/frontend/src/business/menu/environment/components/EnvironmentHttpConfig.vue
@@ -32,7 +32,7 @@
+ :obj="moduleObj" clearable :checkStrictly="true" multiple v-if="!loading" @clean="clean"/>
@@ -62,7 +62,7 @@
{{ $t('commons.add') }}
-
+
{{ $t('commons.clear') }}
{{
@@ -331,6 +331,10 @@ export default {
});
}
},
+ clean() {
+ this.condition.details = [];
+ this.condition.ids = [];
+ },
update() {
const index = this.httpConfig.conditions.findIndex((d) => d.id === this.condition.id);
this.validateSocket(this.condition.socket);
@@ -456,6 +460,7 @@ export default {
if (socket.startsWith("${")){
let split = socket.split(":");
this.condition.domain = split[0];
+ return true;
}
this.condition.port = url.port;
let path = url.pathname === "/" ? "" : url.pathname;