perf: 支持cdnfly

pull/148/head
xiaojunnuo 2024-09-02 16:59:49 +08:00
parent b2d595e85c
commit 724a85028b
4 changed files with 5 additions and 4 deletions

View File

@ -158,7 +158,7 @@ export default function ({ crudExpose, context: { certdFormRef } }: CreateCrudOp
const files = await api.GetFiles(row.id);
Modal.success({
title: "文件下载",
okText: "↑↑↑ 点击链接下载",
okText: "↑↑↑ 点击上面链接下载",
content: () => {
const children = [];
for (const file of files) {

View File

@ -66,7 +66,7 @@
"ssh2": "^1.15.0",
"svg-captcha": "^1.4.0",
"tencentcloud-sdk-nodejs": "^4.0.44",
"typeorm": "0.3.15"
"typeorm": "^0.3.20"
},
"devDependencies": {
"@midwayjs/mock": "^3.16.4",

View File

@ -17,7 +17,7 @@ export abstract class BaseService<T> {
async transaction(callback: (entityManager: EntityManager) => Promise<any>) {
const dataSource = this.dataSourceManager.getDataSource('default');
await dataSource.transaction(callback);
await dataSource.transaction(callback as any);
}
/**

View File

@ -11,7 +11,7 @@ export class AliyunAccess {
component: {
placeholder: 'accessKeyId',
},
helper: '注意证书申请需要dns解析权限其他阿里云插件也需要对应的权限比如证书上传需要证书管理权限',
helper: '登录阿里云控制台->AccessKey管理页面获取。',
required: true,
})
accessKeyId = '';
@ -22,6 +22,7 @@ export class AliyunAccess {
},
required: true,
encrypt: true,
helper: '注意证书申请需要dns解析权限其他阿里云插件需要对应的权限比如证书上传需要证书管理权限嫌麻烦就用主账号的全量权限的accessKey',
})
accessKeySecret = '';
}