Skip to content

Commit e42952d

Browse files
authored
Merge pull request #13 from wsrh8888/feature-rh
[feat]修改上传路径为七牛云
2 parents 7e604ae + 8e5f6f5 commit e42952d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/render/api/file.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ export const previewOnlineFileApi = (fileKey: string) => {
1616
*/
1717
export const uploadFileApi = async (file: File, fileKey?: string): Promise<IFileUploadResult> => {
1818
// if(source === 'local') {
19-
return await uploadToLocalApi(file, fileKey)
19+
// return await uploadToLocalApi(file, fileKey)
2020
// } else if(source === 'qiniu') {
21-
// return await uploadQiniuApi(file, fileKey);
21+
return await uploadQiniuApi(file, fileKey);
2222
// }
2323
// return Promise.reject(new Error('Invalid source'));
2424
}

0 commit comments

Comments
 (0)