|
@@ -26,7 +26,10 @@ export default () => {
|
|
|
},
|
|
|
e => {
|
|
|
console.log(e, "导出")
|
|
|
- exportProgress.value = parseInt(e.progress)
|
|
|
+ /* 导出有个 bug 会先出现100,再出现50, 所以排除 doing 的100 */
|
|
|
+ if (!(e.status === "doing" && parseInt(e.progress) === 100)) {
|
|
|
+ exportProgress.value = parseInt(e.progress)
|
|
|
+ }
|
|
|
if (e.progress === 100) {
|
|
|
if (e.status === "done") {
|
|
|
exporting.value = false
|