From 2d7f835f2a829775eee3bc53600b1576adac2fcc Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Sat, 30 Oct 2021 22:33:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BB=86=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/bandwidth-limit-config-box.js | 18 ++++++++++++++++++ web/views/@default/servers/create.html | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/web/public/js/components/server/bandwidth-limit-config-box.js b/web/public/js/components/server/bandwidth-limit-config-box.js index 3d5bec3a..b500b2ca 100644 --- a/web/public/js/components/server/bandwidth-limit-config-box.js +++ b/web/public/js/components/server/bandwidth-limit-config-box.js @@ -20,6 +20,24 @@ Vue.component("bandwidth-limit-config-box", { noticePageBody: "" } } + if (config.dailySize == null) { + config.dailySize = { + count: -1, + unit: "gb" + } + } + if (config.monthlySize == null) { + config.monthlySize = { + count: -1, + unit: "gb" + } + } + if (config.totalSize == null) { + config.totalSize = { + count: -1, + unit: "gb" + } + } return { config: config } diff --git a/web/views/@default/servers/create.html b/web/views/@default/servers/create.html index 5f33e281..163e9eb8 100644 --- a/web/views/@default/servers/create.html +++ b/web/views/@default/servers/create.html @@ -97,7 +97,7 @@     WAF     - 从上级代理中读取IP + 从上级代理中读取IP