mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 04:22:33 +08:00
feat: 优化证书逻辑
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user