mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-01-06 23:24:23 +08:00
fix: Delete the unused fields (#8639)
This commit is contained in:
parent
5d579660e3
commit
93f80e64cf
3 changed files with 8 additions and 12 deletions
|
|
@ -17,7 +17,6 @@ type SettingInfo struct {
|
|||
Theme string `json:"theme"`
|
||||
MenuTabs string `json:"menuTabs"`
|
||||
Language string `json:"language"`
|
||||
SystemIP string `json:"systemIP"`
|
||||
|
||||
ServerPort string `json:"serverPort"`
|
||||
SSL string `json:"ssl"`
|
||||
|
|
|
|||
|
|
@ -105,9 +105,6 @@ var InitSetting = &gormigrate.Migration{
|
|||
if err := tx.Create(&model.Setting{Key: "SecurityEntrance", Value: global.CONF.Conn.Entrance}).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
if err := tx.Create(&model.Setting{Key: "JWTSigningKey", Value: common.RandStr(16)}).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
if err := tx.Create(&model.Setting{Key: "EncryptKey", Value: encryptKey}).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -117,9 +114,6 @@ var InitSetting = &gormigrate.Migration{
|
|||
if err := tx.Create(&model.Setting{Key: "ExpirationDays", Value: "0"}).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
if err := tx.Create(&model.Setting{Key: "SystemIP", Value: ""}).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
if err := tx.Create(&model.Setting{Key: "ComplexityVerification", Value: constant.StatusEnable}).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -313,12 +313,11 @@ const search = async () => {
|
|||
const res = await getSettingInfo();
|
||||
form.userName = res.data.userName;
|
||||
form.password = '******';
|
||||
form.sessionTimeout = Number(res.data.sessionTimeout);
|
||||
form.panelName = res.data.panelName;
|
||||
form.theme = res.data.theme;
|
||||
form.menuTabs = res.data.menuTabs;
|
||||
form.panelName = res.data.panelName;
|
||||
form.language = res.data.language;
|
||||
form.complexityVerification = res.data.complexityVerification;
|
||||
form.developerMode = res.data.developerMode;
|
||||
form.sessionTimeout = Number(res.data.sessionTimeout);
|
||||
|
||||
form.proxyUrl = res.data.proxyUrl;
|
||||
form.proxyType = res.data.proxyType;
|
||||
|
|
@ -327,12 +326,16 @@ const search = async () => {
|
|||
form.proxyUser = res.data.proxyUser;
|
||||
form.proxyPasswd = res.data.proxyPasswd;
|
||||
form.proxyPasswdKeep = res.data.proxyPasswdKeep;
|
||||
|
||||
form.apiInterfaceStatus = res.data.apiInterfaceStatus;
|
||||
form.apiKey = res.data.apiKey;
|
||||
form.ipWhiteList = res.data.ipWhiteList;
|
||||
form.apiKeyValidityTime = res.data.apiKeyValidityTime;
|
||||
|
||||
form.developerMode = res.data.developerMode;
|
||||
form.hideMenu = res.data.hideMenu;
|
||||
form.theme = res.data.theme;
|
||||
|
||||
form.complexityVerification = res.data.complexityVerification;
|
||||
|
||||
if (isMasterProductPro.value) {
|
||||
const xpackRes = await getXpackSetting();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue