Compare commits
3 Commits
5712e77a29
...
3487cabc02
Author | SHA1 | Date |
---|---|---|
lyc | 3487cabc02 | |
朱浩 | 7106d75964 | |
朱浩 | 4c635e9fe3 |
|
@ -182,8 +182,10 @@ export default async function ({ app, shell, BrowserWindow, ipcMain }) {
|
||||||
let file = new File([data], name, {
|
let file = new File([data], name, {
|
||||||
type: fileType
|
type: fileType
|
||||||
})
|
})
|
||||||
|
const stats = fs.statSync(path)
|
||||||
formData.append('file', file)
|
formData.append('file', file)
|
||||||
formData.append('md5', md5)
|
formData.append('md5', md5)
|
||||||
|
formData.append('lastModifyTime', stats.mtime.toLocaleString())
|
||||||
axios
|
axios
|
||||||
.post(url, formData, config)
|
.post(url, formData, config)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
|
|
Loading…
Reference in New Issue