1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-01-19 00:09:16 +08:00

fix: Fix the issue of database cover exception display. (#7682)

This commit is contained in:
ssongliu 2025-01-09 21:59:41 +08:00 committed by GitHub
parent b9be79b05a
commit aab8df6abc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 24 additions and 22 deletions

View File

@ -187,31 +187,26 @@ const clear = () => {
}; };
const onOperate = async (operation: string) => { const onOperate = async (operation: string) => {
em('update:maskShow', false);
operateReq.operate = operation; operateReq.operate = operation;
ElMessageBox.confirm(i18n.global.t(`app.${operation}OperatorHelper`), i18n.global.t('app.' + operation), { ElMessageBox.confirm(i18n.global.t(`app.${operation}OperatorHelper`), i18n.global.t('app.' + operation), {
confirmButtonText: i18n.global.t('commons.button.confirm'), confirmButtonText: i18n.global.t('commons.button.confirm'),
cancelButtonText: i18n.global.t('commons.button.cancel'), cancelButtonText: i18n.global.t('commons.button.cancel'),
type: 'info', type: 'info',
}) }).then(() => {
.then(() => { em('update:maskShow', true);
em('update:maskShow', true); em('update:loading', true);
em('update:loading', true); em('before');
em('before'); InstalledOp(operateReq)
InstalledOp(operateReq) .then(() => {
.then(() => { em('update:loading', false);
em('update:loading', false); MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
MsgSuccess(i18n.global.t('commons.msg.operationSuccess')); onCheck(key.value, name.value);
onCheck(key.value, name.value); em('after');
em('after'); })
}) .catch(() => {
.catch(() => { em('update:loading', false);
em('update:loading', false); });
}); });
})
.catch(() => {
em('update:maskShow', true);
});
}; };
const getTitle = (key: string) => { const getTitle = (key: string) => {

View File

@ -1321,6 +1321,7 @@ const message = {
panelInstallDir: `1Panel installation directory can't be deleted`, panelInstallDir: `1Panel installation directory can't be deleted`,
}, },
ssh: { ssh: {
setting: 'Setting',
autoStart: 'Auto start', autoStart: 'Auto start',
enable: 'Enable Autostart', enable: 'Enable Autostart',
disable: 'Disable Autostart', disable: 'Disable Autostart',

View File

@ -1298,6 +1298,7 @@ const message = {
panelInstallDir: `1Panelインストールディレクトリは削除できません`, panelInstallDir: `1Panelインストールディレクトリは削除できません`,
}, },
ssh: { ssh: {
setting: '設定',
autoStart: 'オートスタート', autoStart: 'オートスタート',
enable: 'AutoStartを有効にします', enable: 'AutoStartを有効にします',
disable: 'AutoStartを無効にします', disable: 'AutoStartを無効にします',

View File

@ -1341,6 +1341,7 @@ const message = {
panelInstallDir: 'Direktori pemasangan 1Panel tidak boleh dipadamkan', panelInstallDir: 'Direktori pemasangan 1Panel tidak boleh dipadamkan',
}, },
ssh: { ssh: {
setting: 'tetapan',
autoStart: 'Mula automatik', autoStart: 'Mula automatik',
enable: 'Aktifkan Mula Automatik', enable: 'Aktifkan Mula Automatik',
disable: 'Nyahaktif Mula Automatik', disable: 'Nyahaktif Mula Automatik',

View File

@ -1327,6 +1327,7 @@ const message = {
panelInstallDir: 'O diretório de instalação do 1Panel não pode ser excluído', panelInstallDir: 'O diretório de instalação do 1Panel não pode ser excluído',
}, },
ssh: { ssh: {
setting: 'configuração',
autoStart: 'Início automático', autoStart: 'Início automático',
enable: 'Habilitar início automático', enable: 'Habilitar início automático',
disable: 'Desabilitar início automático', disable: 'Desabilitar início automático',

View File

@ -1329,6 +1329,7 @@ const message = {
panelInstallDir: 'Директорию установки 1Panel нельзя удалить', panelInstallDir: 'Директорию установки 1Panel нельзя удалить',
}, },
ssh: { ssh: {
setting: 'настройка',
autoStart: 'Автозапуск', autoStart: 'Автозапуск',
enable: 'Включить автозапуск', enable: 'Включить автозапуск',
disable: 'Отключить автозапуск', disable: 'Отключить автозапуск',

View File

@ -1258,6 +1258,7 @@ const message = {
panelInstallDir: '1Panel 安裝目錄不能刪除', panelInstallDir: '1Panel 安裝目錄不能刪除',
}, },
ssh: { ssh: {
setting: '設定',
autoStart: '開機自啟', autoStart: '開機自啟',
enable: '設定開機自啟', enable: '設定開機自啟',
disable: '關閉開機自啟', disable: '關閉開機自啟',

View File

@ -1259,6 +1259,7 @@ const message = {
panelInstallDir: '1Panel 安装目录不能删除', panelInstallDir: '1Panel 安装目录不能删除',
}, },
ssh: { ssh: {
setting: '配置',
autoStart: '开机自启', autoStart: '开机自启',
enable: '设置开机自启', enable: '设置开机自启',
disable: '关闭开机自启', disable: '关闭开机自启',

View File

@ -12,7 +12,7 @@ import i18n from '@/lang';
const buttons = [ const buttons = [
{ {
label: i18n.global.t('menu.settings', 2), label: i18n.global.t('ssh.setting', 2),
path: '/hosts/ssh/ssh', path: '/hosts/ssh/ssh',
}, },
{ {

View File

@ -52,7 +52,7 @@
</el-card> </el-card>
</div> </div>
<LayoutContent style="margin-top: 20px" :title="$t('menu.settings', 2)" :divider="true"> <LayoutContent style="margin-top: 20px" :title="$t('ssh.setting')" :divider="true">
<template #main> <template #main>
<el-radio-group v-model="confShowType" @change="changeMode"> <el-radio-group v-model="confShowType" @change="changeMode">
<el-radio-button value="base">{{ $t('database.baseConf') }}</el-radio-button> <el-radio-button value="base">{{ $t('database.baseConf') }}</el-radio-button>