diff --git a/web/src/views/system/downloadCenter/crud.tsx b/web/src/views/system/downloadCenter/crud.tsx index 79639c071307977e96215e3086b4f2db87062431..af839cf9e8280df8ad150e2fee8dbd958e5f49f7 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') } }, },