mirror of https://github.com/1Panel-dev/1Panel
parent
4a974b7e0a
commit
887db0aff7
|
@ -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;
|
||||
|
|
|
@ -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) => {
|
||||
|
|
|
@ -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 });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue