update endpoint stratigy

This commit is contained in:
liangping
2023-05-15 18:43:26 +08:00
parent 77cb720bc7
commit aef6e5f0e3
3 changed files with 18 additions and 8 deletions
+3 -1
View File
@@ -13,7 +13,9 @@ router.beforeEach((to) => {
const { chain } = to.params
if(chain){
const blockchain = useBlockchain()
blockchain.setCurrent(chain.toString())
if(chain !== blockchain.chainName) {
blockchain.setCurrent(chain.toString())
}
}
})