li><router-link to="/basicSearch" :class="{'link-active':linkBoolean}">基礎檢索</router-link></li>
data () {
return {
imgUrl,
linkBoolean:false
}
},
created(){
if(this.$route.path == "/storeDetails" || this.$route.path == "/utxoDetails" ||
this.$route.path == "/blockAllDetails"){
this.linkBoolean = true
}
},
根據Router中子頁面鏈接名稱,指定對應上級頁面的導航樣式是否激活