文件上传修改

This commit is contained in:
朱浩 2024-09-13 09:30:36 +08:00
parent bc0579fa32
commit a4fa5be295
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{
"name": "aix-win",
"version": "1.2.2",
"version": "1.2.3",
"description": "An Electron application with Vue",
"main": "./out/main/index.js",
"author": "example.com",

View File

@ -224,7 +224,7 @@ export default async function ({ app, shell, BrowserWindow, ipcMain }) {
formData.append(key, uploadData[key])
}
}
formData.append('fileFlag', '教案')
formData.append('fileFlag', '课件')
uploadFileByFS({
url: uploadUrl,
path,

View File

@ -142,9 +142,9 @@ async function createLinkWin(data) {
.catch((error) => {})
data.fullPath = data.fullPath.replaceAll('//', '/')
if (data.fullPath.indexOf('?') !== -1) {
data.fullPath += '&urlSource=smarttalk'
data.fullPath += '&urlSource=smarttalk&t' + Date.now()
}else {
data.fullPath += '?urlSource=smarttalk'
data.fullPath += '?urlSource=smarttalk&t' + Date.now()
}
linkWin[data.key].loadURL(data.fullPath)