Compare commits

..

3 Commits

Author SHA1 Message Date
朱浩 4248fd4504 Merge pull request 'zhuhao_dev' (#89) from zhuhao_dev into main
Reviewed-on: #89
2024-07-31 16:47:27 +08:00
朱浩 241b0d3f24 Merge branch 'main' into zhuhao_dev 2024-07-31 16:46:58 +08:00
朱浩 ede8dfd533 二期:bug修复 2024-07-31 16:46:37 +08:00
3 changed files with 7 additions and 4 deletions

View File

@ -9,6 +9,7 @@ export const asyncLocalFile = (item) => {
if (isAsync === true) {
item.async = 'on'
if (type === 'down') {
console.log(item)
ipcRenderer.send('download-file-default', {
url: item.fileFullPath,
fileName: item.fileNewName

View File

@ -232,7 +232,7 @@ export default {
},
asyncAllFile() {
this.isLoading = true
getSmarttalkPage({
return getSmarttalkPage({
...this.uploadData,
orderByColumn: 'uploadTime',
isAsc: 'desc',
@ -249,9 +249,11 @@ export default {
await asyncLocalFile(item)
}
this.asyncAllFileVisiable = false
return Promise.resolve()
})
.catch(() => {
this.isLoading = false
return Promise.resolve()
})
},
async nodeClick(data) {
@ -264,7 +266,7 @@ export default {
this.uploadData.levelSecondId = cata[1]
this.uploadData.levelThirdId = cata[2]
this.uploadData.textbookId = data.textBook.curBookId
this.asyncAllFile()
await this.asyncAllFile()
if (this.uploadData.levelSecondId) {
// ID
const res = await this.getChapterId()

View File

@ -213,6 +213,7 @@ export default {
> .btn {
position: relative;
display: flex;
margin-top: 30px;
> .upload {
display: block;
width: 60px;
@ -222,7 +223,6 @@ export default {
left: 0;
opacity: 0;
}
margin-top: 30px;
}
}
.personal-authentica {