mirror of
https://github.com/hoppscotch/hoppscotch
synced 2024-11-21 22:50:51 +00:00
Enable shareable requests with preseted attributes in url queries
This commit is contained in:
parent
4237dfc9d1
commit
d71a4ba0bb
@ -528,7 +528,15 @@
|
||||
this.$refs.previewFrame.setAttribute('data-previewing-url', this.url);
|
||||
}
|
||||
}
|
||||
},
|
||||
setRouteQueries(queries) {
|
||||
for (const key in queries) {
|
||||
if (this[key]) this[key] = queries[key];
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (Object.keys(this.$route.query).length) this.setRouteQueries(this.$route.query);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user