feat: 增加 dns 修改提示信息 (#3299)

This commit is contained in:
ssongliu 2023-12-13 11:36:09 +08:00 committed by GitHub
parent 2cf950b49e
commit 91a895ea0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 12 additions and 2 deletions

View file

@ -918,6 +918,8 @@ const message = {
},
device: {
dnsHelper: 'Server Address Domain Resolution',
dnsAlert:
'Attention! Modifying the configuration of /etc/resolv.conf file will restore the file to its default values after system restart.',
dnsHelper1:
'When there are multiple DNS entries, they should be displayed on new lines. e.g.\n114.114.114.114\n8.8.8.8',
hostsHelper: 'Hostname Resolution',

View file

@ -874,6 +874,7 @@ const message = {
},
device: {
dnsHelper: '伺服器地址域名解析',
dnsAlert: '請注意修改 /etc/resolv.conf 文件的配置時重啟系統後會將文件恢復為預設值',
dnsHelper1: '當存在多個DNS時需換行顯示\n114.114.114.114\n8.8.8.8',
hostsHelper: '主機名解析',
hosts: '域名',

View file

@ -875,7 +875,8 @@ const message = {
},
device: {
dnsHelper: '服务器地址域名解析',
dnsHelper1: '当存在多个DNS时需换行显示\n114.114.114.114\n8.8.8.8',
dnsAlert: '请注意修改 /etc/resolv.conf 文件的配置时重启系统后会将文件恢复为默认值',
dnsHelper1: '当存在多个 DNS 需换行显示\n114.114.114.114\n8.8.8.8',
hostsHelper: '主机名解析',
hosts: '域名',
toolbox: '工具箱',

View file

@ -158,7 +158,7 @@ const acceptParams = (params: DialogProps): void => {
if (dialogData.value.rowData.version.startsWith('10.')) {
dialogData.value.rowData.version = '10.x';
}
dialogData.value.rowData.hasCA = dialogData.value.rowData.rootCert?.length === 0;
dialogData.value.rowData.hasCA = dialogData.value.rowData.rootCert?.length !== 0;
title.value = i18n.global.t('database.' + dialogData.value.title + 'RemoteDB');
drawerVisible.value = true;
};

View file

@ -7,6 +7,12 @@
<el-row type="flex" justify="center">
<el-col :span="22">
<el-alert
:title="$t('toolbox.device.dnsAlert')"
class="common-prompt"
:closable="false"
type="warning"
/>
<el-radio-group v-model="confShowType" @change="changeMode">
<el-radio-button label="form">{{ $t('database.baseConf') }}</el-radio-button>
<el-radio-button label="all">{{ $t('database.allConf') }}</el-radio-button>