Commit cbf4b0f4 authored by JingChao's avatar JingChao

Update index.vue

parent 3e2a1bc1
......@@ -75,7 +75,9 @@ export default {
},
mounted () {
let vm = this
this.items[vm.current].$el.classList.add('activated')
setTimeout(()=>{
this.items[vm.current].$el.classList.add('activated')
},100)
this.scrollToActiveTab(vm.current, this.items[vm.current].$el.clientWidth)
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment