mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-08 22:46:51 +08:00
fix: Fix the problem of abnormal display of database connection infor… (#8553)
This commit is contained in:
parent
64a14a6b2a
commit
bdeff3d281
3 changed files with 6 additions and 6 deletions
|
@ -112,7 +112,7 @@ import ConfirmDialog from '@/components/confirm-dialog/index.vue';
|
|||
import { getAppConnInfo } from '@/api/modules/app';
|
||||
import { MsgSuccess } from '@/utils/message';
|
||||
import { getRandomStr } from '@/utils/util';
|
||||
import { getSettingInfo } from '@/api/modules/setting';
|
||||
import { getAgentSettingInfo } from '@/api/modules/setting';
|
||||
import { GlobalStore } from '@/store';
|
||||
const globalStore = GlobalStore();
|
||||
|
||||
|
@ -185,7 +185,7 @@ const loadSystemIP = async () => {
|
|||
form.systemIP = globalStore.currentNode || i18n.global.t('database.localIP');
|
||||
return;
|
||||
}
|
||||
const res = await getSettingInfo();
|
||||
const res = await getAgentSettingInfo();
|
||||
form.systemIP = res.data.systemIP || i18n.global.t('database.localIP');
|
||||
};
|
||||
|
||||
|
|
|
@ -114,7 +114,7 @@ import ConfirmDialog from '@/components/confirm-dialog/index.vue';
|
|||
import { getAppConnInfo } from '@/api/modules/app';
|
||||
import { MsgSuccess } from '@/utils/message';
|
||||
import { getRandomStr } from '@/utils/util';
|
||||
import { getSettingInfo } from '@/api/modules/setting';
|
||||
import { getAgentSettingInfo } from '@/api/modules/setting';
|
||||
import { GlobalStore } from '@/store';
|
||||
const globalStore = GlobalStore();
|
||||
|
||||
|
@ -185,7 +185,7 @@ const loadSystemIP = async () => {
|
|||
form.systemIP = globalStore.currentNode || i18n.global.t('database.localIP');
|
||||
return;
|
||||
}
|
||||
const res = await getSettingInfo();
|
||||
const res = await getAgentSettingInfo();
|
||||
form.systemIP = res.data.systemIP || i18n.global.t('database.localIP');
|
||||
};
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ import ConfirmDialog from '@/components/confirm-dialog/index.vue';
|
|||
import { getAppConnInfo } from '@/api/modules/app';
|
||||
import { MsgSuccess } from '@/utils/message';
|
||||
import { getRandomStr } from '@/utils/util';
|
||||
import { getSettingInfo } from '@/api/modules/setting';
|
||||
import { getAgentSettingInfo } from '@/api/modules/setting';
|
||||
import { GlobalStore } from '@/store';
|
||||
const globalStore = GlobalStore();
|
||||
|
||||
|
@ -187,7 +187,7 @@ const loadSystemIP = async () => {
|
|||
form.systemIP = globalStore.currentNode || i18n.global.t('database.localIP');
|
||||
return;
|
||||
}
|
||||
const res = await getSettingInfo();
|
||||
const res = await getAgentSettingInfo();
|
||||
form.systemIP = res.data.systemIP || i18n.global.t('database.localIP');
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue