From 93b03c72121ccc3f5b373df8c2639cadcb3e7edb Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Wed, 24 May 2023 17:22:42 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/service/app_install.go | 8 -------- frontend/components.d.ts | 10 +++------- frontend/src/views/website/website/index.vue | 2 +- 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/backend/app/service/app_install.go b/backend/app/service/app_install.go index 262ad4679..69e7d5ce3 100644 --- a/backend/app/service/app_install.go +++ b/backend/app/service/app_install.go @@ -230,35 +230,27 @@ func (a *AppInstallService) Update(req request.AppInstalledUpdate) error { return err } changePort := false - var ( - oldPorts []int - newPorts []int - ) port, ok := req.Params["PANEL_APP_PORT_HTTP"] if ok { portN := int(math.Ceil(port.(float64))) if portN != installed.HttpPort { - oldPorts = append(oldPorts, installed.HttpPort) changePort = true httpPort, err := checkPort("PANEL_APP_PORT_HTTP", req.Params) if err != nil { return err } installed.HttpPort = httpPort - newPorts = append(newPorts, httpPort) } } ports, ok := req.Params["PANEL_APP_PORT_HTTPS"] if ok { portN := int(math.Ceil(ports.(float64))) if portN != installed.HttpsPort { - oldPorts = append(oldPorts, installed.HttpsPort) httpsPort, err := checkPort("PANEL_APP_PORT_HTTPS", req.Params) if err != nil { return err } installed.HttpsPort = httpsPort - newPorts = append(newPorts, httpsPort) } } diff --git a/frontend/components.d.ts b/frontend/components.d.ts index 25e7f23ee..182ad8cc9 100644 --- a/frontend/components.d.ts +++ b/frontend/components.d.ts @@ -17,7 +17,6 @@ declare module 'vue' { ContainerLog: typeof import('./src/components/container-log/index.vue')['default'] DrawerHeader: typeof import('./src/components/drawer-header/index.vue')['default'] ElAlert: typeof import('element-plus/es')['ElAlert'] - ElAside: typeof import('element-plus/es')['ElAside']; ElAvatar: typeof import('element-plus/es')['ElAvatar'] ElBadge: typeof import('element-plus/es')['ElBadge'] ElButton: typeof import('element-plus/es')['ElButton'] @@ -27,7 +26,6 @@ declare module 'vue' { ElCheckboxGroup: typeof import('element-plus/es')['ElCheckboxGroup'] ElCol: typeof import('element-plus/es')['ElCol'] ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] - ElContainer: typeof import('element-plus/es')['ElContainer']; ElDatePicker: typeof import('element-plus/es')['ElDatePicker'] ElDescriptions: typeof import('element-plus/es')['ElDescriptions'] ElDescriptionsItem: typeof import('element-plus/es')['ElDescriptionsItem'] @@ -37,16 +35,14 @@ declare module 'vue' { ElDropdown: typeof import('element-plus/es')['ElDropdown'] ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem'] ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu'] - ElEmpty: typeof import('element-plus/es')['ElEmpty']; - ElFooter: typeof import('element-plus/es')['ElFooter']; + ElEmpty: typeof import('element-plus/es')['ElEmpty'] ElForm: typeof import('element-plus/es')['ElForm'] ElFormItem: typeof import('element-plus/es')['ElFormItem'] 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'] ElInputNumber: typeof import('element-plus/es')['ElInputNumber'] ElLink: typeof import('element-plus/es')['ElLink'] - ElMain: typeof import('element-plus/es')['ElMain']; ElMenu: typeof import('element-plus/es')['ElMenu'] ElMenuItem: typeof import('element-plus/es')['ElMenuItem'] 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'] Loading: typeof import('element-plus/es')['ElLoadingDirective'] 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'] Status: typeof import('./src/components/status/index.vue')['default'] SvgIcon: typeof import('./src/components/svg-icon/svg-icon.vue')['default'] diff --git a/frontend/src/views/website/website/index.vue b/frontend/src/views/website/website/index.vue index c472a32d1..02c33f385 100644 --- a/frontend/src/views/website/website/index.vue +++ b/frontend/src/views/website/website/index.vue @@ -159,8 +159,8 @@ + -