From 86c202b94a8130d20c73b872105aaace74e0ef19 Mon Sep 17 00:00:00 2001 From: lxy <46486798@qq.com> Date: Thu, 20 Mar 2025 11:28:09 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E4=B8=8B?= =?UTF-8?q?=E8=BD=BD=E9=97=AE=E9=A2=98=20update=20web/src/views/system/dow?= =?UTF-8?q?nloadCenter/crud.tsx.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: lxy <46486798@qq.com> --- web/src/views/system/downloadCenter/crud.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/views/system/downloadCenter/crud.tsx b/web/src/views/system/downloadCenter/crud.tsx index 79639c0713..af839cf9e8 100644 --- a/web/src/views/system/downloadCenter/crud.tsx +++ b/web/src/views/system/downloadCenter/crud.tsx @@ -2,7 +2,8 @@ import { CrudOptions, AddReq, DelReq, EditReq, dict, CrudExpose, compute } from import * as api from './api'; import { dictionary } from '/@/utils/dictionary'; import { successMessage } from '../../../utils/message'; -import { auth } from '/@/utils/authFunction' +import { auth } from '/@/utils/authFunction'; +import { getBaseURL } from '/@/utils/baseUrl'; interface CreateCrudOptionsTypes { output: any; @@ -27,7 +28,6 @@ export const createCrudOptions = function ({ crudExpose }: { crudExpose: CrudExp //权限判定 - // @ts-ignore // @ts-ignore return { crudOptions: { @@ -72,7 +72,7 @@ export const createCrudOptions = function ({ crudExpose }: { crudExpose: CrudExp show: compute(ctx => ctx.row.task_status === 2), text: '下载文件', type: 'warning', - click: (ctx) => window.open(ctx.row.url, '_blank') + click: (ctx) => window.open(getBaseURL(ctx.row.url), '_blank') } }, }, -- Gitee