Merge pull request '二期:自动同步功能开发' (#54) from zhuhao_dev into main
Reviewed-on: #54
This commit is contained in:
commit
7106d75964
|
@ -182,8 +182,10 @@ export default async function ({ app, shell, BrowserWindow, ipcMain }) {
|
|||
let file = new File([data], name, {
|
||||
type: fileType
|
||||
})
|
||||
const stats = fs.statSync(path)
|
||||
formData.append('file', file)
|
||||
formData.append('md5', md5)
|
||||
formData.append('lastModifyTime', stats.mtime.toLocaleString())
|
||||
axios
|
||||
.post(url, formData, config)
|
||||
.then((response) => {
|
||||
|
|
Loading…
Reference in New Issue