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