Vue.component("http-remote-addr-config-box", { props: ["v-remote-addr-config", "v-is-location", "v-is-group"], data: function () { let config = this.vRemoteAddrConfig if (config == null) { config = { isPrior: false, isOn: false, value: "${remoteAddr}" } } return { config: config } }, methods: { isOn: function () { return ((!this.vIsLocation && !this.vIsGroup) || this.config.isPrior) && this.config.isOn } }, template: `
| 是否启用 |
选中后表示使用自定义的请求变量获取客户端IP。 |
| 请求变量 |
通过此变量获取用户的IP地址。具体可用的请求变量列表可参考官方网站文档。 |