Skip to content

Commit e411c68

Browse files
committed
支持使用公开部署的服务上传图片
1 parent beb8829 commit e411c68

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/store/config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export const useAppConfig = createPersistStore(
4040
max: max,
4141
fieldProps: {
4242
listType,
43+
beforeUpload,
4344
},
4445
transform: (value: Array<{ thumbUrl?: string }>) => {
4546
if (!value) return undefined;
@@ -58,6 +59,7 @@ export const useAppConfig = createPersistStore(
5859
max: max,
5960
fieldProps: {
6061
listType,
62+
beforeUpload,
6163
customRequest: async (options: any) => {
6264
try {
6365
const fileUrl = await uploadToGetFileUrl(options.file as File);

0 commit comments

Comments
 (0)