mirror of
https://git.mirrors.martin98.com/https://github.com/sub-store-org/Sub-Store.git
synced 2025-08-11 01:38:59 +08:00
Fixed: empty uploading files
This commit is contained in:
parent
fc90e22a48
commit
36d46003d6
@ -40,6 +40,10 @@ export default class Gist {
|
||||
}
|
||||
|
||||
async upload(files) {
|
||||
if (Object.keys(files).length === 0) {
|
||||
return Promise.reject('未提供需上传的文件');
|
||||
}
|
||||
|
||||
const id = await this.locate();
|
||||
|
||||
if (id === -1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user