mirror of
https://github.com/certd/certd.git
synced 2026-04-24 20:57:26 +08:00
fix: 修复创建流水线报id不能为空的bug
This commit is contained in:
@@ -374,8 +374,8 @@ function openUpgrade() {
|
|||||||
<div class="mt-10">
|
<div class="mt-10">
|
||||||
{t("vip.current")} {vipLabel} {t("vip.activated_expire_time")}
|
{t("vip.current")} {vipLabel} {t("vip.activated_expire_time")}
|
||||||
{settingStore.expiresText}
|
{settingStore.expiresText}
|
||||||
<a class="ml-2" onClick={goBindAccount}>
|
<a class="ml-15" href="https://app.handfree.work/subject/#/page/detail/1" target="_blank">
|
||||||
没有生效?
|
{t("vip.learn_more")}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
@@ -449,6 +449,10 @@ function openUpgrade() {
|
|||||||
<div class="flex-o w-100">
|
<div class="flex-o w-100">
|
||||||
<span>{t("vip.site_id")}:</span>
|
<span>{t("vip.site_id")}:</span>
|
||||||
<fs-copyable v-model={computedSiteId.value}></fs-copyable>
|
<fs-copyable v-model={computedSiteId.value}></fs-copyable>
|
||||||
|
|
||||||
|
<a class="ml-2" onClick={goBindAccount}>
|
||||||
|
{t("vip.not_effective")}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{plusInfo}
|
{plusInfo}
|
||||||
|
|||||||
@@ -98,4 +98,6 @@ export default {
|
|||||||
already_comm: "Already Business Edition, can't change to Professional Edition",
|
already_comm: "Already Business Edition, can't change to Professional Edition",
|
||||||
already_perpetual_plus: "You already have a perpetual Professional Edition, can't upgrade",
|
already_perpetual_plus: "You already have a perpetual Professional Edition, can't upgrade",
|
||||||
confirm: "Confirm",
|
confirm: "Confirm",
|
||||||
|
not_effective: "Not effective?",
|
||||||
|
learn_more: "More privileges",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -97,4 +97,6 @@ export default {
|
|||||||
already_comm: "已经是商业版了,不能降级为专业版",
|
already_comm: "已经是商业版了,不能降级为专业版",
|
||||||
already_perpetual_plus: "您已经是永久专业版了,无法继续升级",
|
already_perpetual_plus: "您已经是永久专业版了,无法继续升级",
|
||||||
confirm: "确认",
|
confirm: "确认",
|
||||||
|
not_effective: "没有生效?",
|
||||||
|
learn_more: "更多特权(加VIP群等)",
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ export async function GetDetail(id: any) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function Save(pipelineEntity: any) {
|
export async function Save(pipelineEntity: any): Promise<{ id: number; version: number }> {
|
||||||
return await request({
|
return await request({
|
||||||
url: apiPrefix + "/save",
|
url: apiPrefix + "/save",
|
||||||
method: "post",
|
method: "post",
|
||||||
|
|||||||
@@ -367,7 +367,7 @@ export function useCertPipelineCreator() {
|
|||||||
|
|
||||||
pipeline = setRunnableIds(pipeline);
|
pipeline = setRunnableIds(pipeline);
|
||||||
const groupId = form.groupId;
|
const groupId = form.groupId;
|
||||||
const id = await api.Save({
|
const { id } = await api.Save({
|
||||||
title: pipeline.title,
|
title: pipeline.title,
|
||||||
content: JSON.stringify(pipeline),
|
content: JSON.stringify(pipeline),
|
||||||
keepHistoryCount: 30,
|
keepHistoryCount: 30,
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ export type RunHistory = {
|
|||||||
|
|
||||||
export type PipelineOptions = {
|
export type PipelineOptions = {
|
||||||
doTrigger(options: { pipelineId: number; stepId?: string }): Promise<void>;
|
doTrigger(options: { pipelineId: number; stepId?: string }): Promise<void>;
|
||||||
doSave(pipelineConfig: Pipeline): Promise<void>;
|
doSave(pipelineConfig: Pipeline): Promise<{ id: number; version: number }>;
|
||||||
getPipelineDetail(query: { pipelineId: number }): Promise<PipelineDetail>;
|
getPipelineDetail(query: { pipelineId: number }): Promise<PipelineDetail>;
|
||||||
getHistoryList(query: { pipelineId: number }): Promise<RunHistory[]>;
|
getHistoryList(query: { pipelineId: number }): Promise<RunHistory[]>;
|
||||||
getHistoryDetail(query: { historyId: number }): Promise<RunHistory>;
|
getHistoryDetail(query: { historyId: number }): Promise<RunHistory>;
|
||||||
|
|||||||
Reference in New Issue
Block a user