From 557e98c33f5462167d8f6289f70dad68bb114a97 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Sat, 11 Apr 2026 20:56:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=B8=8A=E4=BC=A0=E5=A4=B4=E5=83=8F=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/plugins/common/output-selector/index.vue | 2 +- .../src/views/certd/addon/addon-selector/index.vue | 2 +- .../ui/certd-client/src/views/sys/authority/user/crud.tsx | 4 ++-- packages/ui/certd-client/src/views/sys/site/api.ts | 2 +- packages/ui/certd-client/src/views/sys/site/index.vue | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/ui/certd-client/src/components/plugins/common/output-selector/index.vue b/packages/ui/certd-client/src/components/plugins/common/output-selector/index.vue index 7f6c95d43..785cdfd85 100644 --- a/packages/ui/certd-client/src/components/plugins/common/output-selector/index.vue +++ b/packages/ui/certd-client/src/components/plugins/common/output-selector/index.vue @@ -33,7 +33,7 @@ export default { async function onCreate() { await pluginStore.init(); options.value = pluginStore.group.getPreStepOutputOptions({ - pipeline: pipeline.value, + pipeline: pipeline?.value, currentStageIndex: currentStageIndex.value, currentTaskIndex: currentTaskIndex.value, currentStepIndex: currentStepIndex.value, diff --git a/packages/ui/certd-client/src/views/certd/addon/addon-selector/index.vue b/packages/ui/certd-client/src/views/certd/addon/addon-selector/index.vue index c14dddbad..eab047529 100644 --- a/packages/ui/certd-client/src/views/certd/addon/addon-selector/index.vue +++ b/packages/ui/certd-client/src/views/certd/addon/addon-selector/index.vue @@ -131,7 +131,7 @@ const userStore = useUserStore(); const projectStore = useProjectStore(); async function emitValue(value: any) { // target.value = optionsDictRef.dataMap[value]; - if (pipeline.value) { + if (pipeline?.value) { const userId = userStore.userInfo.id; const isEnterprice = projectStore.isEnterprise; if (isEnterprice) { diff --git a/packages/ui/certd-client/src/views/sys/authority/user/crud.tsx b/packages/ui/certd-client/src/views/sys/authority/user/crud.tsx index 2a7a40e32..3a9663bc2 100644 --- a/packages/ui/certd-client/src/views/sys/authority/user/crud.tsx +++ b/packages/ui/certd-client/src/views/sys/authority/user/crud.tsx @@ -172,7 +172,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti width: "auto", }, buildUrl(key: string) { - return `api/basic/file/download?&key=` + key; + return `api/basic/file/download?token=${userStore.getToken}&key=` + key; }, }, }, @@ -188,7 +188,7 @@ export default function ({ crudExpose }: CreateCrudOptionsProps): CreateCrudOpti onReady: null, uploader: { type: "form", - action: "/basic/file/upload", + action: "/basic/file/upload?token=" + userStore.getToken, name: "file", headers: { Authorization: "Bearer " + userStore.getToken, diff --git a/packages/ui/certd-client/src/views/sys/site/api.ts b/packages/ui/certd-client/src/views/sys/site/api.ts index 3ccf4ebb5..9de9559ec 100644 --- a/packages/ui/certd-client/src/views/sys/site/api.ts +++ b/packages/ui/certd-client/src/views/sys/site/api.ts @@ -2,7 +2,7 @@ import { request } from "/src/api/service"; const apiPrefix = "/sys/site"; -export async function SettingsGet(key: string) { +export async function SettingsGet() { return await request({ url: apiPrefix + "/get", method: "post", diff --git a/packages/ui/certd-client/src/views/sys/site/index.vue b/packages/ui/certd-client/src/views/sys/site/index.vue index 673e136d1..62719a267 100644 --- a/packages/ui/certd-client/src/views/sys/site/index.vue +++ b/packages/ui/certd-client/src/views/sys/site/index.vue @@ -88,7 +88,7 @@ const onFinish = async (form: any) => { const userStore = useUserStore(); const uploaderConfig = ref({ type: "form", - action: "/basic/file/upload", + action: "/basic/file/upload?token=" + userStore.getToken, name: "file", headers: { Authorization: "Bearer " + userStore.getToken,