jcq 1 day ago
parent
commit
86870aac3d
2 changed files with 5 additions and 3 deletions
  1. 1 1
      .env
  2. 4 2
      src/views/marketing/config/index.vue

+ 1 - 1
.env

@@ -6,7 +6,7 @@ VITE_PUBLIC_PATH = /
 
 # 后端请求前缀
 # VITE_API_URL = /api
-VITE_API_URL = http://192.168.3.17:9999
+VITE_API_URL = http://192.168.10.101:9999
 
 # OAUTH2 密码模式客户端信息
 VITE_OAUTH2_PASSWORD_CLIENT='pig:pig'

+ 4 - 2
src/views/marketing/config/index.vue

@@ -8,7 +8,7 @@
 					筛选分组:<el-input placeholder="请输入分组名称" clearable
 						style="display: inline-block; width: 200px; margin-left: 5px;"
 						v-model="queryIPName" />
-					<div v-if="ipData.length > 0" class="overflow-y-auto mt-2" style="height: calc(100vh - 300px)">
+					<div v-if="ipData.length > 0" class="overflow-y-auto mt-2" style="height: calc(100vh - 250px)">
 						<JCollapse
 							@update="(item) => onClickEdit(item, 'ip')"
 							@delete="(item) => onOpenDelete(item, 'ip')"
@@ -27,7 +27,7 @@
 					筛选分组:<el-input placeholder="请输入分组名称" clearable
 					style="display: inline-block; width: 200px; margin-left: 5px;"
 					v-model="queryDomainName" />
-					<div v-if="domainData.length > 0" class="overflow-y-auto mt-2" style="height: calc(100vh - 300px)">
+					<div v-if="domainData.length > 0" class="overflow-y-auto mt-2" style="height: calc(100vh - 250px)">
 						<JCollapse
 							@update="(item) => onClickEdit(item, 'domain')"
 							:data="showDomainData"
@@ -399,6 +399,8 @@ const handleClick = (data: any) => {
 	} else if (data.props.label === '域名分组') {
 		getDomainData();
 	} else {
+		getIpData();
+		getDomainData();
 		getConfig();
 	}
 };