|
|
@@ -513,16 +513,12 @@ export default {
|
|
|
}
|
|
|
self.car.offsetX = carCount * -1
|
|
|
self.beam.offsetX = carCount * -1
|
|
|
- // for (var f = 0; f < 3; f++) {
|
|
|
- // var ddd = lt.children[f]
|
|
|
- // var ss = 90 * Math.PI / 180
|
|
|
- // console.log('asdasd', ss)
|
|
|
- // ddd.rotate(ss)
|
|
|
- // }
|
|
|
} else {
|
|
|
if (bhookLinesCount < 22) {
|
|
|
if (bhookLinesCount % 22 === 0 && dataCount < 8) {
|
|
|
- self.$emit('returndata', self.data[dataCount++])
|
|
|
+ if (self.data.length > dataCount) {
|
|
|
+ self.$emit('returndata', self.data[dataCount++])
|
|
|
+ }
|
|
|
}
|
|
|
bhookLinesCount++
|
|
|
self.bhookXConfig.offsetY = bhookLinesCount * -1
|
|
|
@@ -534,7 +530,9 @@ export default {
|
|
|
} else {
|
|
|
if (bhooksCount < 200) {
|
|
|
if (bhooksCount % 80 === 0 && dataCount < 10) {
|
|
|
- self.$emit('returndata', self.data[dataCount++])
|
|
|
+ if (self.data.length > dataCount) {
|
|
|
+ self.$emit('returndata', self.data[dataCount++])
|
|
|
+ }
|
|
|
}
|
|
|
bhooksCount++
|
|
|
self.bhooksConfig.offsetX = bhooksCount * -1
|
|
|
@@ -542,7 +540,9 @@ export default {
|
|
|
} else {
|
|
|
if (fhookLinesCount < 22) {
|
|
|
if (fhookLinesCount % 22 === 0 && dataCount < 12) {
|
|
|
- self.$emit('returndata', self.data[dataCount++])
|
|
|
+ if (self.data.length > dataCount) {
|
|
|
+ self.$emit('returndata', self.data[dataCount++])
|
|
|
+ }
|
|
|
}
|
|
|
fhookLinesCount++
|
|
|
self.fhookXConfig.offsetY = fhookLinesCount * -1
|
|
|
@@ -554,7 +554,9 @@ export default {
|
|
|
} else {
|
|
|
if (hookCount < 204) {
|
|
|
if (hookCount % 50 === 0 && dataCount < 15) {
|
|
|
- self.$emit('returndata', self.data[dataCount++])
|
|
|
+ if (self.data.length > dataCount) {
|
|
|
+ self.$emit('returndata', self.data[dataCount++])
|
|
|
+ }
|
|
|
}
|
|
|
hookCount++
|
|
|
self.fhooksConfig.offsetX += -1
|
|
|
@@ -564,7 +566,9 @@ export default {
|
|
|
} else {
|
|
|
if (returnhookCount < 70) {
|
|
|
if (hookCount % 70 === 0 && dataCount < 17) {
|
|
|
- self.$emit('returndata', self.data[dataCount++])
|
|
|
+ if (self.data.length > dataCount) {
|
|
|
+ self.$emit('returndata', self.data[dataCount++])
|
|
|
+ }
|
|
|
}
|
|
|
returnhookCount++
|
|
|
self.bhookXConfig.offsetY += -1
|