调整加载动画

This commit is contained in:
fan 2020-09-09 10:42:05 +08:00
parent 201252dbf9
commit 4df950f495
2 changed files with 2 additions and 1 deletions

View File

@ -109,12 +109,14 @@ export default {
this.percentage = 100; this.percentage = 100;
setTimeout(() => { setTimeout(() => {
this.show = false; this.show = false;
this.$store.dispatch('app/animationsClose');
}, 1000 / this.fps); }, 1000 / this.fps);
}, },
failed() { failed() {
this.status = 'exception'; this.status = 'exception';
setTimeout(() => { setTimeout(() => {
this.show = false; this.show = false;
this.$store.dispatch('app/animationsClose');
}, 1000 / this.fps); }, 1000 / this.fps);
} }
} }

View File

@ -314,7 +314,6 @@ export default {
// //
handleViewLoaded() { handleViewLoaded() {
this.$store.dispatch('map/mapViewLoaded'); this.$store.dispatch('map/mapViewLoaded');
this.$store.dispatch('app/animationsClose');
if (!this.$store.state.training.prdType) { if (!this.$store.state.training.prdType) {
this.mapViewLoaded(false); this.mapViewLoaded(false);
} }