@mixd-id/web-scaffold 0.1.2301231355 → 0.1.2301231356
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -614,7 +614,8 @@ export default{
|
|
|
614
614
|
summary: null,
|
|
615
615
|
count: null,
|
|
616
616
|
hasNext: false,
|
|
617
|
-
modal: null
|
|
617
|
+
modal: null,
|
|
618
|
+
lastLoadAt: null
|
|
618
619
|
}
|
|
619
620
|
},
|
|
620
621
|
|
|
@@ -652,6 +653,7 @@ export default{
|
|
|
652
653
|
this.hasNext = data.hasNext
|
|
653
654
|
this.count = data.count
|
|
654
655
|
this.isLoading = false
|
|
656
|
+
this.lastLoadAt = new Date().getTime()
|
|
655
657
|
})
|
|
656
658
|
|
|
657
659
|
if(this.name)
|
|
@@ -712,6 +714,7 @@ export default{
|
|
|
712
714
|
this.hasNext = data.hasNext
|
|
713
715
|
this.count = data.count
|
|
714
716
|
this.isLoading = false
|
|
717
|
+
this.lastLoadAt = new Date().getTime()
|
|
715
718
|
}, (err) => {
|
|
716
719
|
this.isLoading = false
|
|
717
720
|
this.toast(err)
|
|
@@ -729,7 +732,8 @@ export default{
|
|
|
729
732
|
},
|
|
730
733
|
|
|
731
734
|
onFocus(){
|
|
732
|
-
this.
|
|
735
|
+
if(!this.lastLoadAt || (new Date().getTime() - this.lastLoadAt) > 60000)
|
|
736
|
+
this.load()
|
|
733
737
|
},
|
|
734
738
|
|
|
735
739
|
savePreset: throttle(function(preset) {
|