mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 00:19:35 +08:00
Merge d2eedef611
into 11c8cc1e19
This commit is contained in:
commit
1b4689f2dc
@ -154,7 +154,7 @@ export const uploadImage = async (pathname, image, preferences) => {
|
||||
if (typeof filepath !== 'string') {
|
||||
isPath = false
|
||||
const data = new Uint8Array(filepath)
|
||||
filepath = path.join(tmpdir(), +new Date())
|
||||
filepath = path.join(tmpdir(), String(new Date().getTime()))
|
||||
await fs.writeFile(filepath, data)
|
||||
}
|
||||
if (uploader === 'picgo') {
|
||||
|
Loading…
Reference in New Issue
Block a user