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

This commit is contained in:
ssongliu
2025-01-09 13:59:41 +00:00
committed by GitHub
parent b9be79b05a
commit aab8df6abc
10 changed files with 24 additions and 22 deletions
+15 -20
View File
@@ -187,31 +187,26 @@ const clear = () => {
};
const onOperate = async (operation: string) => {
em('update:maskShow', false);
operateReq.operate = operation;
ElMessageBox.confirm(i18n.global.t(`app.${operation}OperatorHelper`), i18n.global.t('app.' + operation), {
confirmButtonText: i18n.global.t('commons.button.confirm'),
cancelButtonText: i18n.global.t('commons.button.cancel'),
type: 'info',
})
.then(() => {
em('update:maskShow', true);
em('update:loading', true);
em('before');
InstalledOp(operateReq)
.then(() => {
em('update:loading', false);
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
onCheck(key.value, name.value);
em('after');
})
.catch(() => {
em('update:loading', false);
});
})
.catch(() => {
em('update:maskShow', true);
});
}).then(() => {
em('update:maskShow', true);
em('update:loading', true);
em('before');
InstalledOp(operateReq)
.then(() => {
em('update:loading', false);
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
onCheck(key.value, name.value);
em('after');
})
.catch(() => {
em('update:loading', false);
});
});
};
const getTitle = (key: string) => {
+1
View File
@@ -1321,6 +1321,7 @@ const message = {
panelInstallDir: `1Panel installation directory can't be deleted`,
},
ssh: {
setting: 'Setting',
autoStart: 'Auto start',
enable: 'Enable Autostart',
disable: 'Disable Autostart',
+1
View File
@@ -1298,6 +1298,7 @@ const message = {
panelInstallDir: `1Panelインストールディレクトリは削除できません`,
},
ssh: {
setting: '設定',
autoStart: 'オートスタート',
enable: 'AutoStartを有効にします',
disable: 'AutoStartを無効にします',
+1
View File
@@ -1341,6 +1341,7 @@ const message = {
panelInstallDir: 'Direktori pemasangan 1Panel tidak boleh dipadamkan',
},
ssh: {
setting: 'tetapan',
autoStart: 'Mula automatik',
enable: 'Aktifkan Mula Automatik',
disable: 'Nyahaktif Mula Automatik',
+1
View File
@@ -1327,6 +1327,7 @@ const message = {
panelInstallDir: 'O diretório de instalação do 1Panel não pode ser excluído',
},
ssh: {
setting: 'configuração',
autoStart: 'Início automático',
enable: 'Habilitar início automático',
disable: 'Desabilitar início automático',
+1
View File
@@ -1329,6 +1329,7 @@ const message = {
panelInstallDir: 'Директорию установки 1Panel нельзя удалить',
},
ssh: {
setting: 'настройка',
autoStart: 'Автозапуск',
enable: 'Включить автозапуск',
disable: 'Отключить автозапуск',
+1
View File
@@ -1258,6 +1258,7 @@ const message = {
panelInstallDir: '1Panel 安裝目錄不能刪除',
},
ssh: {
setting: '設定',
autoStart: '開機自啟',
enable: '設定開機自啟',
disable: '關閉開機自啟',
+1
View File
@@ -1259,6 +1259,7 @@ const message = {
panelInstallDir: '1Panel 安装目录不能删除',
},
ssh: {
setting: '配置',
autoStart: '开机自启',
enable: '设置开机自启',
disable: '关闭开机自启',
+1 -1
View File
@@ -12,7 +12,7 @@ import i18n from '@/lang';
const buttons = [
{
label: i18n.global.t('menu.settings', 2),
label: i18n.global.t('ssh.setting', 2),
path: '/hosts/ssh/ssh',
},
{
+1 -1
View File
@@ -52,7 +52,7 @@
</el-card>
</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>
<el-radio-group v-model="confShowType" @change="changeMode">
<el-radio-button value="base">{{ $t('database.baseConf') }}</el-radio-button>