Skip to content

Commit

Permalink
fix: If the url does not have a parameter, it indicates that it is an…
Browse files Browse the repository at this point in the history
…other view and we request the data
  • Loading branch information
krlz16 committed Jun 7, 2024
1 parent 67a6394 commit 8d55930
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/DataPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -302,10 +302,9 @@ export default {
const key = this.reqKey
if (!module || !action) return
const routeName = this.$route.name
const { address, number, hash } = this.$route.params
const urlParam = address || number || hash
const urlParam = this.$route.params.address
// If the parameters are the same when the router changes, we do not request the address information.
if (this.storedRouteName !== routeName || this.storedUrlParam !== urlParam) {
if (this.storedRouteName !== routeName || !urlParam) {
// use Date for a random info
this.storedRouteName = routeName || new Date()
this.storedUrlParam = urlParam
Expand Down

0 comments on commit 8d55930

Please sign in to comment.