mirror of
https://github.com/certd/certd.git
synced 2026-04-16 05:50:50 +08:00
🔱: [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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user