fix: 修复创建流水线报id不能为空的bug

This commit is contained in:
xiaojunnuo
2025-11-11 00:15:09 +08:00
parent acdf0912d4
commit aac569a925
6 changed files with 13 additions and 5 deletions

View File

@@ -374,8 +374,8 @@ function openUpgrade() {
<div class="mt-10">
{t("vip.current")} {vipLabel} {t("vip.activated_expire_time")}
{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>
</div>
);
@@ -449,6 +449,10 @@ function openUpgrade() {
<div class="flex-o w-100">
<span>{t("vip.site_id")}</span>
<fs-copyable v-model={computedSiteId.value}></fs-copyable>
<a class="ml-2" onClick={goBindAccount}>
{t("vip.not_effective")}
</a>
</div>
</div>
{plusInfo}

View File

@@ -98,4 +98,6 @@ export default {
already_comm: "Already Business Edition, can't change to Professional Edition",
already_perpetual_plus: "You already have a perpetual Professional Edition, can't upgrade",
confirm: "Confirm",
not_effective: "Not effective?",
learn_more: "More privileges",
};

View File

@@ -97,4 +97,6 @@ export default {
already_comm: "已经是商业版了,不能降级为专业版",
already_perpetual_plus: "您已经是永久专业版了,无法继续升级",
confirm: "确认",
not_effective: "没有生效?",
learn_more: "更多特权(加VIP群等)",
};

View File

@@ -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({
url: apiPrefix + "/save",
method: "post",

View File

@@ -367,7 +367,7 @@ export function useCertPipelineCreator() {
pipeline = setRunnableIds(pipeline);
const groupId = form.groupId;
const id = await api.Save({
const { id } = await api.Save({
title: pipeline.title,
content: JSON.stringify(pipeline),
keepHistoryCount: 30,

View File

@@ -16,7 +16,7 @@ export type RunHistory = {
export type PipelineOptions = {
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>;
getHistoryList(query: { pipelineId: number }): Promise<RunHistory[]>;
getHistoryDetail(query: { historyId: number }): Promise<RunHistory>;