From c37b6d8f6f80aad9ff8cc26ac651cc8dda7b7df1 Mon Sep 17 00:00:00 2001 From: DevOps Date: Tue, 6 Jan 2026 12:52:28 +0800 Subject: [PATCH] =?UTF-8?q?fix(competition):=20=E4=BF=AE=E5=A4=8D=E9=99=84?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=E6=8C=89=E9=92=AE=E5=A4=B1=E7=81=B5?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 getToken 导入 - 为 avue-form 上传组件添加 Blade-Auth headers 认证 Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com> --- src/views/martial/competition/index.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/views/martial/competition/index.vue b/src/views/martial/competition/index.vue index c3fce8e..44bb8e9 100644 --- a/src/views/martial/competition/index.vue +++ b/src/views/martial/competition/index.vue @@ -959,6 +959,7 @@ import { ATTACHMENT_TYPES, ATTACHMENT_TYPE_LABELS } from '@/api/martial/attachment' +import { getToken } from '@/utils/auth' export default { name: 'CompetitionManagement', @@ -1002,6 +1003,7 @@ export default { propsHttp: { res: 'data', }, + headers: { 'Blade-Auth': 'bearer ' + getToken() }, action: '/blade-resource/oss/endpoint/put-file' } ]