mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
chore: 1panel面板证书更新提示优化
This commit is contained in:
+3
-3
@@ -7,9 +7,9 @@ import { OnePanelClient } from "../client.js";
|
|||||||
|
|
||||||
@IsTaskPlugin({
|
@IsTaskPlugin({
|
||||||
name: "1PanelDeployToWebsitePlugin",
|
name: "1PanelDeployToWebsitePlugin",
|
||||||
title: "1Panel-部署证书到1Panel",
|
title: "1Panel-更新证书",
|
||||||
icon: "svg:icon-onepanel",
|
icon: "svg:icon-onepanel",
|
||||||
desc: "更新1Panel的证书",
|
desc: "更新1Panel的证书,包括面板证书和站点证书",
|
||||||
group: pluginGroups.panel.key,
|
group: pluginGroups.panel.key,
|
||||||
default: {
|
default: {
|
||||||
strategy: {
|
strategy: {
|
||||||
@@ -195,7 +195,7 @@ export class OnePanelDeployToWebsitePlugin extends AbstractTaskPlugin {
|
|||||||
currentNode: this.currentNode,
|
currentNode: this.currentNode,
|
||||||
});
|
});
|
||||||
if (!res?.items) {
|
if (!res?.items) {
|
||||||
throw new Error("没有找到证书,请先在1Panel中手动上传证书,并关联站点,后续才可以自动更新");
|
throw new Error("没有找到证书,请先在1Panel中手动上传证书,并关联站点或设置面板证书,后续才可以自动更新");
|
||||||
}
|
}
|
||||||
const list = res.items.map(item => {
|
const list = res.items.map(item => {
|
||||||
const domains = item.domains ? [] : item.domains.split(",");
|
const domains = item.domains ? [] : item.domains.split(",");
|
||||||
|
|||||||
Reference in New Issue
Block a user