Commit 687ddbf0 authored by chenqikuai's avatar chenqikuai

fix: 修复secene.vue组件的bug。修复菜单的展示

parent 89a38181
......@@ -44,7 +44,12 @@
class="px-6 text-base text-title-color"
:class="{
'menu-active':
$route.path === '/blockChainBrowser' || $route.path === '/block',
$route.path === '/blockChainBrowser' ||
$route.path === '/block' ||
$route.path === '/blockDetail' ||
$route.path === '/tradeHash' ||
$route.path === '/tradeList' ||
$route.path === '/address',
}"
@click="goPage('/blockChainBrowser')"
>
......
......@@ -258,6 +258,9 @@ export default Vue.extend({
}, 4000)
},
},
beforeDestroy() {
clearInterval(this.timer)
},
created() {
this.next = JSON.parse(JSON.stringify(this.list.slice(0, this.copyNum)))
},
......@@ -266,6 +269,7 @@ export default Vue.extend({
},
watch: {
$route() {
clearInterval(this.timer)
this.next = JSON.parse(JSON.stringify(this.list.slice(0, this.copyNum)))
this.initTimer()
},
......
......@@ -77,7 +77,9 @@
$route.path === '/blockChainBrowser' ||
$route.path === '/block' ||
$route.path === '/blockDetail' ||
$route.path === '/tradeHash'
$route.path === '/tradeHash' ||
$route.path === '/tradeList' ||
$route.path === '/address'
"
class="absolute block w-7 h-1 bg-active rounded-2xl left-1/2 -bottom-2 transform -translate-x-1/2"
:class="{
......
......@@ -88,6 +88,6 @@ export default VueTypedMixins(blockDetailMixin).extend({
<style scoped>
.block-detail {
padding-top: 6px;
padding-top: 64px;
}
</style>
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