Skip to content

Commit

Permalink
fix: 页面切换时,隐藏默认配置提示
Browse files Browse the repository at this point in the history
  • Loading branch information
ssongliu authored and f2c-ci-robot[bot] committed Mar 18, 2023
1 parent 4a974b7 commit 887db0a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions frontend/src/views/database/mysql/setting/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
})
Expand Down Expand Up @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/views/database/redis/setting/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
})
Expand All @@ -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) => {
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/setting/snapshot/import/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
}
};
Expand Down

0 comments on commit 887db0a

Please sign in to comment.