mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-06-03 06:42:09 +08:00
✨ Feature: support multiple config (#1016)
This commit is contained in:
11
src/renderer/utils/uploader.ts
Normal file
11
src/renderer/utils/uploader.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { uuid } from 'uuidv4'
|
||||
|
||||
export const completeUploaderMetaConfig = (originData: IStringKeyMap): IStringKeyMap => {
|
||||
return Object.assign({
|
||||
_configName: 'Default'
|
||||
}, originData, {
|
||||
_id: uuid(),
|
||||
_createdAt: Date.now(),
|
||||
_updatedAt: Date.now()
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user