修复证书操作失败后状态刷新及失败审计显示

This commit is contained in:
xuans committed 2026-09-25 02:33:06 +08:00
1 parent ddd1165125
commit feda065b45
2 files changed
+56 -2

No files matched your search

+5 -1
View File
@@ -125,6 +125,7 @@ export function useDashboard() {
failed: "失败",
cancelled: "已取消",
};
taskStatusLabels.error = taskStatusLabels.failed;
const taskTypeLabels = {
management_renewal: "管理证书续期",
certificate_issue: "申请证书",
@@ -687,9 +688,12 @@ export function useDashboard() {
const result = await response.json().catch(() => ({}));
if (!response.ok) throw new Error(result.error || "域名操作失败");
notice.value = successMessage;
await loadData();
} catch (err) {
error.value = err.message || "域名操作失败";
} finally {
const actionError = error.value;
await loadData();
if (actionError) error.value = actionError;
}
}
function issueDomain(item) {