mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-10 03:30:53 +08:00
parent
79e9dc9914
commit
784b8da7af
3 changed files with 9 additions and 3 deletions
|
|
@ -387,7 +387,9 @@ const onSetting = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const changeDatabase = async () => {
|
const changeDatabase = async () => {
|
||||||
appStatusRef.value.onCheck();
|
if (currentDB.value.from === 'local') {
|
||||||
|
appStatusRef.value.onCheck();
|
||||||
|
}
|
||||||
for (const item of dbOptionsLocal.value) {
|
for (const item of dbOptionsLocal.value) {
|
||||||
if (item.database == currentDBName.value) {
|
if (item.database == currentDBName.value) {
|
||||||
currentDB.value = item;
|
currentDB.value = item;
|
||||||
|
|
|
||||||
|
|
@ -350,7 +350,9 @@ const onSetting = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const changeDatabase = async () => {
|
const changeDatabase = async () => {
|
||||||
appStatusRef.value.onCheck();
|
if (currentDB.value.from === 'local') {
|
||||||
|
appStatusRef.value.onCheck();
|
||||||
|
}
|
||||||
for (const item of dbOptionsLocal.value) {
|
for (const item of dbOptionsLocal.value) {
|
||||||
if (item.database == currentDBName.value) {
|
if (item.database == currentDBName.value) {
|
||||||
currentDB.value = item;
|
currentDB.value = item;
|
||||||
|
|
|
||||||
|
|
@ -222,7 +222,9 @@ const goRouter = async (target: string) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const changeDatabase = async () => {
|
const changeDatabase = async () => {
|
||||||
appStatusRef.value.onCheck();
|
if (currentDB.value.from === 'local') {
|
||||||
|
appStatusRef.value.onCheck();
|
||||||
|
}
|
||||||
for (const item of dbOptionsLocal.value) {
|
for (const item of dbOptionsLocal.value) {
|
||||||
if (item.database == currentDBName.value) {
|
if (item.database == currentDBName.value) {
|
||||||
currentDB.value = item;
|
currentDB.value = item;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue