diff --git a/frontend/src/views/database/mysql/setting/index.vue b/frontend/src/views/database/mysql/setting/index.vue index 50c76c563..826f22e4e 100644 --- a/frontend/src/views/database/mysql/setting/index.vue +++ b/frontend/src/views/database/mysql/setting/index.vue @@ -244,6 +244,7 @@ const onSubmitChangeConf = async () => { loading.value = true; await updateMysqlConfByFile(param) .then(() => { + useOld.value = false; loading.value = false; MsgSuccess(i18n.global.t('commons.msg.operationSuccess')); }) @@ -303,6 +304,7 @@ const loadSlowLogs = async () => { }; const loadMysqlConf = async (path: string) => { + useOld.value = false; const res = await LoadFile({ path: path }); loading.value = false; mysqlConf.value = res.data; diff --git a/frontend/src/views/database/redis/setting/index.vue b/frontend/src/views/database/redis/setting/index.vue index 68fe946f8..3e3b8a8a0 100644 --- a/frontend/src/views/database/redis/setting/index.vue +++ b/frontend/src/views/database/redis/setting/index.vue @@ -317,6 +317,7 @@ const submtiFile = async () => { loading.value = true; await updateRedisConfByFile(param) .then(() => { + useOld.value = false; loading.value = false; MsgSuccess(i18n.global.t('commons.msg.operationSuccess')); }) @@ -337,6 +338,7 @@ const loadform = async () => { const loadConfFile = async () => { const pathRes = await loadBaseDir(); let path = `${pathRes.data}/apps/redis/${redisName.value}/conf/redis.conf`; + useOld.value = false; loading.value = true; await LoadFile({ path: path }) .then((res) => { diff --git a/frontend/src/views/setting/snapshot/import/index.vue b/frontend/src/views/setting/snapshot/import/index.vue index 7fc5d25a1..75989c8d1 100644 --- a/frontend/src/views/setting/snapshot/import/index.vue +++ b/frontend/src/views/setting/snapshot/import/index.vue @@ -105,7 +105,7 @@ const loadBackups = async () => { backupOptions.value = []; for (const item of res.data) { if (item.type !== 'LOCAL' && item.id !== 0) { - backupOptions.value.push({ label: i18n.global.t('setting' + item.type), value: item.type }); + backupOptions.value.push({ label: i18n.global.t('setting.' + item.type), value: item.type }); } } };