Fix the bug of continuous loading when clicking on the "Translate All" button without keywords.


Former-commit-id: 3bb5b14fc8d2a27e31fcbdbcd929dc0d34691a10
This commit is contained in:
Physton
2023-05-09 01:30:57 +08:00
parent f6df52228e
commit 66824a14dc
3 changed files with 4 additions and 2 deletions

View File

@@ -1 +1 @@
d91984c937a25e28ca1a52c051c1441ebf8e41b9
f4d27c404adeaea3a82c9a9293290a51149ddf2a

View File

@@ -1 +1 @@
0fd2193b3305d57f431b18fbd6aff80457ff1a78
0d60817c2560b7509832d02d81644af87892f8d7

View File

@@ -641,6 +641,7 @@ export default {
})
},
onTranslatesToLocalClick() {
if (this.tags.length === 0) return
if (this.loading['all_local']) return
this.loading['all_local'] = true
let tagIndexes = []
@@ -675,6 +676,7 @@ export default {
})
},
onTranslatesToEnglishClick() {
if (this.tags.length === 0) return
if (this.loading['all_en']) return
this.loading['all_en'] = true
let tagIndexes = []