Vue.component("traffic-limit-config-box", { props: ["v-traffic-limit"], data: function () { let config = this.vTrafficLimit if (config == null) { config = { isOn: false, dailySize: { count: -1, unit: "gb" }, monthlySize: { count: -1, unit: "gb" }, totalSize: { count: -1, unit: "gb" }, 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 } }, methods: { showBodyTemplate: function () { this.config.noticePageBody = ` Traffic Limit Exceeded Warning

Traffic Limit Exceeded Warning

The site traffic has exceeded the limit. Please contact with the site administrator.

Request ID: \${requestId}.
` } }, template: `
启用流量限制

注意:由于流量统计是每5分钟统计一次,所以超出流量限制后,对用户的提醒也会有所延迟。

日流量限制
月流量限制
网页提示内容

[使用模板]。当达到流量限制时网页显示的HTML内容,不填写则显示默认的提示内容,适用于网站类服务。

` })