二期:自动同步功能开发 #54

Merged
zhuhao merged 1 commits from zhuhao_dev into main 2024-07-23 14:07:14 +08:00
1 changed files with 2 additions and 0 deletions
Showing only changes of commit 4c635e9fe3 - Show all commits

View File

@ -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) => {