fix: 页面切换时,隐藏默认配置提示

pull/295/head v1.0.2
ssongliu 2023-03-18 13:14:57 +08:00 committed by f2c-ci-robot[bot]
parent 4a974b7e0a
commit 887db0aff7
3 changed files with 5 additions and 1 deletions

View File

@ -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;

View File

@ -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) => {

View File

@ -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 });
}
}
};