Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
uri update when selecting request
Jacob Anavisca54207e3f337f
diff --git a/pages/index.vue b/pages/index.vueindex 53e76da61..9b4d00666 100644--- a/pages/index.vue+++ b/pages/index.vue@@ -1493,6 +1493,7 @@ export default {selectedRequest(newValue, oldValue) {// @TODO: Convert all variables to single request variableif (!newValue) return+ this.uri = newValue.url + newValue.paththis.url = newValue.urlthis.path = newValue.paththis.method = newValue.method@@ -1521,9 +1522,9 @@ export default {computed: {uri: {get() {- return this.url + this.path ?- this.url + this.path- : this.$store.state.request.uri;+ return this.$store.state.request.uri ?+ this.$store.state.request.uri+ : this.url + this.path;},set(value) {this.$store.commit("setState", { value, attribute: "uri" })@@ -1974,6 +1975,7 @@ export default {handleUseHistory({ label, method, url, path, usesScripts, preRequestScript }) {this.label = labelthis.method = method+ this.uri = url + paththis.url = urlthis.path = paththis.showPreRequestScript = usesScripts