We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7e604ae + 8e5f6f5 commit e42952dCopy full SHA for e42952d
src/render/api/file.ts
@@ -16,9 +16,9 @@ export const previewOnlineFileApi = (fileKey: string) => {
16
*/
17
export const uploadFileApi = async (file: File, fileKey?: string): Promise<IFileUploadResult> => {
18
// if(source === 'local') {
19
- return await uploadToLocalApi(file, fileKey)
+ // return await uploadToLocalApi(file, fileKey)
20
// } else if(source === 'qiniu') {
21
- // return await uploadQiniuApi(file, fileKey);
+ return await uploadQiniuApi(file, fileKey);
22
// }
23
// return Promise.reject(new Error('Invalid source'));
24
}
0 commit comments