mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-09 23:17:21 +08:00
fix: 页面切换时,隐藏默认配置提示
This commit is contained in:
parent
4a974b7e0a
commit
887db0aff7
3 changed files with 5 additions and 1 deletions
|
@ -244,6 +244,7 @@ const onSubmitChangeConf = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
await updateMysqlConfByFile(param)
|
await updateMysqlConfByFile(param)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
useOld.value = false;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
||||||
})
|
})
|
||||||
|
@ -303,6 +304,7 @@ const loadSlowLogs = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const loadMysqlConf = async (path: string) => {
|
const loadMysqlConf = async (path: string) => {
|
||||||
|
useOld.value = false;
|
||||||
const res = await LoadFile({ path: path });
|
const res = await LoadFile({ path: path });
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
mysqlConf.value = res.data;
|
mysqlConf.value = res.data;
|
||||||
|
|
|
@ -317,6 +317,7 @@ const submtiFile = async () => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
await updateRedisConfByFile(param)
|
await updateRedisConfByFile(param)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
|
useOld.value = false;
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
MsgSuccess(i18n.global.t('commons.msg.operationSuccess'));
|
||||||
})
|
})
|
||||||
|
@ -337,6 +338,7 @@ const loadform = async () => {
|
||||||
const loadConfFile = async () => {
|
const loadConfFile = async () => {
|
||||||
const pathRes = await loadBaseDir();
|
const pathRes = await loadBaseDir();
|
||||||
let path = `${pathRes.data}/apps/redis/${redisName.value}/conf/redis.conf`;
|
let path = `${pathRes.data}/apps/redis/${redisName.value}/conf/redis.conf`;
|
||||||
|
useOld.value = false;
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
await LoadFile({ path: path })
|
await LoadFile({ path: path })
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
|
|
@ -105,7 +105,7 @@ const loadBackups = async () => {
|
||||||
backupOptions.value = [];
|
backupOptions.value = [];
|
||||||
for (const item of res.data) {
|
for (const item of res.data) {
|
||||||
if (item.type !== 'LOCAL' && item.id !== 0) {
|
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…
Add table
Reference in a new issue