🔱: [client] sync upgrade with 4 commits [trident-sync]

build: publish success
chore:  keepName: true,
perf: table select 支持返回object对象

https://github.com/fast-crud/fast-crud/issues/241
This commit is contained in:
GitHub Actions Bot
2023-09-13 19:24:15 +00:00
parent 90e4545210
commit 018dfed128
4 changed files with 19 additions and 5 deletions

View File

@@ -125,6 +125,7 @@ function install(app: any, options: any = {}) {
app.use(FsExtendsUploader, {
defaultType: "cos",
cos: {
keepName: true,
domain: "https://d2p-demo-1251260344.cos.ap-guangzhou.myqcloud.com",
bucket: "d2p-demo-1251260344",
region: "ap-guangzhou",
@@ -157,6 +158,7 @@ function install(app: any, options: any = {}) {
region: "oss-cn-shenzhen",
accessKeyId: "",
accessKeySecret: "",
keepName: true,
async getAuthorization(custom: any, context: any) {
// 不传accessKeySecret代表使用临时签名模式,此时此参数必传(安全,生产环境推荐)
const ret = await request({
@@ -177,6 +179,7 @@ function install(app: any, options: any = {}) {
}
},
qiniu: {
keepName: true,
bucket: "d2p-demo",
async getToken(options: any) {
const ret = await request({
@@ -193,6 +196,7 @@ function install(app: any, options: any = {}) {
domain: "http://d2p.file.handsfree.work/"
},
s3: {
keepName: true,
//同时也支持minio
bucket: "fast-crud",
sdkOpts: {
@@ -219,6 +223,7 @@ function install(app: any, options: any = {}) {
}
},
form: {
keepName: true,
action: "http://www.docmirror.cn:7070/api/upload/form/upload",
name: "file",
withCredentials: false,