2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 04:22:33 +08:00

feat: 优化证书逻辑

This commit is contained in:
2026-01-08 18:39:32 +08:00
parent ce84087702
commit 5e3ec29076
2 changed files with 5 additions and 1 deletions

View File

@@ -374,7 +374,7 @@ func (s *CliService) HTTPSGenerate(ctx context.Context, cmd *cli.Command) error
if err != nil {
return errors.New(s.t.Get("Failed to get ACME account: %v", err))
}
crt, key, err = s.certRepo.ObtainPanel(account, names)
crt, key, err = s.certRepo.ObtainPanel(account, []string{ip})
if err != nil {
return errors.New(s.t.Get("Failed to obtain ACME certificate: %v", err))
}

View File

@@ -1,4 +1,6 @@
<script lang="ts" setup>
import { useTabStore } from '@/store'
defineOptions({
name: 'app-index'
})
@@ -12,12 +14,14 @@ import EnvironmentView from '@/views/app/EnvironmentView.vue'
import TemplateView from '@/views/app/TemplateView.vue'
const { $gettext } = useGettext()
const tabStore = useTabStore()
const currentTab = ref('app')
const handleUpdateCache = () => {
useRequest(app.updateCache()).onSuccess(() => {
window.$message.success($gettext('Cache updated successfully'))
tabStore.reloadTab(tabStore.active)
})
}
</script>