切换时间
This commit is contained in:
@@ -17,7 +17,8 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
page: 'one',
|
page: 'one',
|
||||||
timer: null
|
timer: null,
|
||||||
|
iTime: this.$store.getters.setTime1
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
@@ -27,7 +28,7 @@ export default {
|
|||||||
swipePage () {
|
swipePage () {
|
||||||
this.timer = setInterval(() => {
|
this.timer = setInterval(() => {
|
||||||
this.page = this.page === 'one' ? 'two' : 'one'
|
this.page = this.page === 'one' ? 'two' : 'one'
|
||||||
}, 5000)
|
}, this.iTime)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user