mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-12 19:40:12 +08:00
🐛 Fix: multiple uploading in the same time will cause rename failed
This commit is contained in:
@@ -86,7 +86,7 @@ class Uploader {
|
||||
let name: undefined | string | null
|
||||
let fileName: string | undefined
|
||||
if (autoRename) {
|
||||
fileName = dayjs().add(index, 'second').format('YYYYMMDDHHmmss') + item.extname
|
||||
fileName = dayjs().add(index, 'ms').format('YYYYMMDDHHmmSSS') + item.extname
|
||||
} else {
|
||||
fileName = item.fileName
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user