style: 删除无用代码

pull/1133/head
zhengkunwang223 2 years ago committed by maninhill
parent c96b999b2c
commit 93b03c7212

@ -230,35 +230,27 @@ func (a *AppInstallService) Update(req request.AppInstalledUpdate) error {
return err return err
} }
changePort := false changePort := false
var (
oldPorts []int
newPorts []int
)
port, ok := req.Params["PANEL_APP_PORT_HTTP"] port, ok := req.Params["PANEL_APP_PORT_HTTP"]
if ok { if ok {
portN := int(math.Ceil(port.(float64))) portN := int(math.Ceil(port.(float64)))
if portN != installed.HttpPort { if portN != installed.HttpPort {
oldPorts = append(oldPorts, installed.HttpPort)
changePort = true changePort = true
httpPort, err := checkPort("PANEL_APP_PORT_HTTP", req.Params) httpPort, err := checkPort("PANEL_APP_PORT_HTTP", req.Params)
if err != nil { if err != nil {
return err return err
} }
installed.HttpPort = httpPort installed.HttpPort = httpPort
newPorts = append(newPorts, httpPort)
} }
} }
ports, ok := req.Params["PANEL_APP_PORT_HTTPS"] ports, ok := req.Params["PANEL_APP_PORT_HTTPS"]
if ok { if ok {
portN := int(math.Ceil(ports.(float64))) portN := int(math.Ceil(ports.(float64)))
if portN != installed.HttpsPort { if portN != installed.HttpsPort {
oldPorts = append(oldPorts, installed.HttpsPort)
httpsPort, err := checkPort("PANEL_APP_PORT_HTTPS", req.Params) httpsPort, err := checkPort("PANEL_APP_PORT_HTTPS", req.Params)
if err != nil { if err != nil {
return err return err
} }
installed.HttpsPort = httpsPort installed.HttpsPort = httpsPort
newPorts = append(newPorts, httpsPort)
} }
} }

@ -17,7 +17,6 @@ declare module 'vue' {
ContainerLog: typeof import('./src/components/container-log/index.vue')['default'] ContainerLog: typeof import('./src/components/container-log/index.vue')['default']
DrawerHeader: typeof import('./src/components/drawer-header/index.vue')['default'] DrawerHeader: typeof import('./src/components/drawer-header/index.vue')['default']
ElAlert: typeof import('element-plus/es')['ElAlert'] ElAlert: typeof import('element-plus/es')['ElAlert']
ElAside: typeof import('element-plus/es')['ElAside'];
ElAvatar: typeof import('element-plus/es')['ElAvatar'] ElAvatar: typeof import('element-plus/es')['ElAvatar']
ElBadge: typeof import('element-plus/es')['ElBadge'] ElBadge: typeof import('element-plus/es')['ElBadge']
ElButton: typeof import('element-plus/es')['ElButton'] ElButton: typeof import('element-plus/es')['ElButton']
@ -27,7 +26,6 @@ declare module 'vue' {
ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup']
ElCol: typeof import('element-plus/es')['ElCol'] ElCol: typeof import('element-plus/es')['ElCol']
ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider']
ElContainer: typeof import('element-plus/es')['ElContainer'];
ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDatePicker: typeof import('element-plus/es')['ElDatePicker']
ElDescriptions: typeof import('element-plus/es')['ElDescriptions'] ElDescriptions: typeof import('element-plus/es')['ElDescriptions']
ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem'] ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem']
@ -37,16 +35,14 @@ declare module 'vue' {
ElDropdown: typeof import('element-plus/es')['ElDropdown'] ElDropdown: typeof import('element-plus/es')['ElDropdown']
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
ElEmpty: typeof import('element-plus/es')['ElEmpty']; ElEmpty: typeof import('element-plus/es')['ElEmpty']
ElFooter: typeof import('element-plus/es')['ElFooter'];
ElForm: typeof import('element-plus/es')['ElForm'] ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem'] ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElIcon: typeof import('element-plus/es')['ElIcon'] ElIcon: typeof import('element-plus/es')['ElIcon']
ElImage: typeof import('element-plus/es')['ElImage']; ElImage: typeof import('element-plus/es')['ElImage']
ElInput: typeof import('element-plus/es')['ElInput'] ElInput: typeof import('element-plus/es')['ElInput']
ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
ElLink: typeof import('element-plus/es')['ElLink'] ElLink: typeof import('element-plus/es')['ElLink']
ElMain: typeof import('element-plus/es')['ElMain'];
ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenu: typeof import('element-plus/es')['ElMenu']
ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
ElOption: typeof import('element-plus/es')['ElOption'] ElOption: typeof import('element-plus/es')['ElOption']
@ -81,7 +77,7 @@ declare module 'vue' {
Line: typeof import('./src/components/v-charts/components/Line.vue')['default'] Line: typeof import('./src/components/v-charts/components/Line.vue')['default']
Loading: typeof import('element-plus/es')['ElLoadingDirective'] Loading: typeof import('element-plus/es')['ElLoadingDirective']
MsgInfo: typeof import('./src/components/msg-info/index.vue')['default'] MsgInfo: typeof import('./src/components/msg-info/index.vue')['default']
Popover: typeof import('element-plus/es')['ElPopoverDirective']; Popover: typeof import('element-plus/es')['ElPopoverDirective']
RouterButton: typeof import('./src/components/router-button/index.vue')['default'] RouterButton: typeof import('./src/components/router-button/index.vue')['default']
Status: typeof import('./src/components/status/index.vue')['default'] Status: typeof import('./src/components/status/index.vue')['default']
SvgIcon: typeof import('./src/components/svg-icon/svg-icon.vue')['default'] SvgIcon: typeof import('./src/components/svg-icon/svg-icon.vue')['default']

@ -159,8 +159,8 @@
<Backups ref="dialogBackupRef" /> <Backups ref="dialogBackupRef" />
<DefaultServer ref="defaultRef" /> <DefaultServer ref="defaultRef" />
<GroupDialog @search="listGroup" ref="groupRef" /> <GroupDialog @search="listGroup" ref="groupRef" />
</div>
<NginxConfig v-if="openNginxConfig" v-loading="loading" :containerName="containerName" :status="nginxStatus" /> <NginxConfig v-if="openNginxConfig" v-loading="loading" :containerName="containerName" :status="nginxStatus" />
</div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>

Loading…
Cancel
Save