mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 14:08:06 +08:00
feat: 增加 dns 修改提示信息 (#3299)
This commit is contained in:
parent
2cf950b49e
commit
91a895ea0c
@ -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',
|
||||
|
@ -874,6 +874,7 @@ const message = {
|
||||
},
|
||||
device: {
|
||||
dnsHelper: '伺服器地址域名解析',
|
||||
dnsAlert: '請注意!修改 /etc/resolv.conf 文件的配置時,重啟系統後會將文件恢復為預設值',
|
||||
dnsHelper1: '當存在多個DNS時,需換行顯示,例:\n114.114.114.114\n8.8.8.8',
|
||||
hostsHelper: '主機名解析',
|
||||
hosts: '域名',
|
||||
|
@ -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: '工具箱',
|
||||
|
@ -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;
|
||||
};
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user