Commit 687ddbf0 authored by chenqikuai's avatar chenqikuai

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

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