优化界面

This commit is contained in:
GoEdgeLab
2022-06-09 19:45:09 +08:00
parent 708d2578a6
commit 7417788a78
5 changed files with 5 additions and 5 deletions

View File

@@ -74,7 +74,7 @@ func InitNodeInfo(parentAction *actionutils.ParentAction, nodeId int64) (*pb.Nod
"isOn": info.HasCacheInfo, "isOn": info.HasCacheInfo,
}, },
{ {
"name": "DDOS防护", "name": "DDoS防护",
"url": prefix + "/settings/ddos-protection?" + query, "url": prefix + "/settings/ddos-protection?" + query,
"isActive": menuItem == "ddosProtection", "isActive": menuItem == "ddosProtection",
"isOn": info.HasDDoSProtection, "isOn": info.HasDDoSProtection,

View File

@@ -118,7 +118,7 @@ func (this *ClusterHelper) createSettingMenu(cluster *pb.NodeCluster, info *pb.F
}) })
items = append(items, maps.Map{ items = append(items, maps.Map{
"name": "DDOS防护", "name": "DDoS防护",
"url": "/clusters/cluster/settings/ddos-protection?clusterId=" + clusterId, "url": "/clusters/cluster/settings/ddos-protection?clusterId=" + clusterId,
"isActive": selectedItem == "ddosProtection", "isActive": selectedItem == "ddosProtection",
"isOn": info != nil && info.HasDDoSProtection, "isOn": info != nil && info.HasDDoSProtection,

View File

@@ -135,7 +135,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
<td>TCP端口列表</td> <td>TCP端口列表</td>
<td> <td>
<ddos-protection-ports-config-box :v-ports="config.tcp.ports" @change="changeTCPPorts"></ddos-protection-ports-config-box> <ddos-protection-ports-config-box :v-ports="config.tcp.ports" @change="changeTCPPorts"></ddos-protection-ports-config-box>
<p class="comment">默认为80和443两个端口。</p> <p class="comment">在这些端口上使用当前配置。默认为80和443两个端口。</p>
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@@ -532,7 +532,7 @@ Vue.component("node-ddos-protection-config-box", {
<td>TCP端口列表</td> <td>TCP端口列表</td>
<td> <td>
<ddos-protection-ports-config-box :v-ports="config.tcp.ports" @change="changeTCPPorts"></ddos-protection-ports-config-box> <ddos-protection-ports-config-box :v-ports="config.tcp.ports" @change="changeTCPPorts"></ddos-protection-ports-config-box>
<p class="comment">默认为80和443两个端口。</p> <p class="comment">在这些端口上使用当前配置。默认为80和443两个端口。</p>
</td> </td>
</tr> </tr>
<tr> <tr>

View File

@@ -93,7 +93,7 @@ Vue.component("node-ddos-protection-config-box", {
<td>TCP端口列表</td> <td>TCP端口列表</td>
<td> <td>
<ddos-protection-ports-config-box :v-ports="config.tcp.ports" @change="changeTCPPorts"></ddos-protection-ports-config-box> <ddos-protection-ports-config-box :v-ports="config.tcp.ports" @change="changeTCPPorts"></ddos-protection-ports-config-box>
<p class="comment">默认为80和443两个端口。</p> <p class="comment">在这些端口上使用当前配置。默认为80和443两个端口。</p>
</td> </td>
</tr> </tr>
<tr> <tr>