Browse Source

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

pull/295/head v1.0.2
ssongliu 2 years ago committed by f2c-ci-robot[bot]
parent
commit
887db0aff7
  1. 2
      frontend/src/views/database/mysql/setting/index.vue
  2. 2
      frontend/src/views/database/redis/setting/index.vue
  3. 2
      frontend/src/views/setting/snapshot/import/index.vue

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

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

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

Loading…
Cancel
Save