mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-11-11 04:00:56 +08:00
fix: Resolve popup caused by node switching. (#8862)
This commit is contained in:
parent
0a5f62fe4b
commit
1771bc7dc8
3 changed files with 6 additions and 4 deletions
|
|
@ -147,7 +147,7 @@ var InitSetting = &gormigrate.Migration{
|
||||||
if err := tx.Create(&model.Setting{Key: "NoAuthSetting", Value: "200"}).Error; err != nil {
|
if err := tx.Create(&model.Setting{Key: "NoAuthSetting", Value: "200"}).Error; err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := tx.Create(&model.Setting{Key: "ApiInterfaceStatus", Value: "disable"}).Error; err != nil {
|
if err := tx.Create(&model.Setting{Key: "ApiInterfaceStatus", Value: constant.StatusDisable}).Error; err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := tx.Create(&model.Setting{Key: "ApiKey", Value: ""}).Error; err != nil {
|
if err := tx.Create(&model.Setting{Key: "ApiKey", Value: ""}).Error; err != nil {
|
||||||
|
|
@ -163,13 +163,13 @@ var InitSetting = &gormigrate.Migration{
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := tx.Create(&model.Setting{Key: "UninstallDeleteImage", Value: "Disable"}).Error; err != nil {
|
if err := tx.Create(&model.Setting{Key: "UninstallDeleteImage", Value: constant.StatusDisable}).Error; err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := tx.Create(&model.Setting{Key: "UpgradeBackup", Value: "Enable"}).Error; err != nil {
|
if err := tx.Create(&model.Setting{Key: "UpgradeBackup", Value: "Enable"}).Error; err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := tx.Create(&model.Setting{Key: "UninstallDeleteBackup", Value: "Disable"}).Error; err != nil {
|
if err := tx.Create(&model.Setting{Key: "UninstallDeleteBackup", Value: constant.StatusDisable}).Error; err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
|
|
@ -177,6 +177,7 @@ const acceptParams = (params: DialogProps): void => {
|
||||||
detailName.value = params.detailName;
|
detailName.value = params.detailName;
|
||||||
backupVisible.value = true;
|
backupVisible.value = true;
|
||||||
status.value = params.status;
|
status.value = params.status;
|
||||||
|
secret.value = '';
|
||||||
search();
|
search();
|
||||||
};
|
};
|
||||||
const handleClose = () => {
|
const handleClose = () => {
|
||||||
|
|
@ -312,6 +313,7 @@ const onBackup = async () => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const onRecover = async (row: Backup.RecordInfo) => {
|
const onRecover = async (row: Backup.RecordInfo) => {
|
||||||
|
secret.value = '';
|
||||||
isBackup.value = false;
|
isBackup.value = false;
|
||||||
if (type.value !== 'app' && type.value !== 'website') {
|
if (type.value !== 'app' && type.value !== 'website') {
|
||||||
ElMessageBox.confirm(
|
ElMessageBox.confirm(
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@
|
||||||
:label="$t('commons.table.name')"
|
:label="$t('commons.table.name')"
|
||||||
fix
|
fix
|
||||||
prop="primaryDomain"
|
prop="primaryDomain"
|
||||||
min-width="150px"
|
min-width="250px"
|
||||||
sortable
|
sortable
|
||||||
show-overflow-tooltip
|
show-overflow-tooltip
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue