fix: 指定 IP 输入增加提示信息 (#867)

This commit is contained in:
ssongliu 2023-05-04 19:12:52 +08:00 committed by GitHub
parent e95e79b572
commit 5f55a56a9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View file

@ -1366,6 +1366,7 @@ const message = {
source: 'Source',
anyWhere: 'AnyWhere',
address: 'Specified IP',
addressHelper: 'Support IP address or IP segment',
allow: 'Allow',
deny: 'Deny',
addressFormatError: 'Please enter a valid ip address!',

View file

@ -1351,6 +1351,7 @@ const message = {
source: '来源',
anyWhere: '所有 IP',
address: '指定 IP',
addressHelper: '支持输入 IP IP ',
allow: '放行',
deny: '屏蔽',
addressFormatError: '请输入合法的 ip 地址',

View file

@ -37,7 +37,10 @@
v-if="dialogData.rowData!.source === 'address'"
prop="address"
>
<el-input v-model="dialogData.rowData!.address" />
<el-input
:placeholder="$t('firewall.addressHelper')"
v-model="dialogData.rowData!.address"
/>
</el-form-item>
<el-form-item :label="$t('firewall.strategy')" prop="strategy">