fix: add query from cURL import - fixed #1582
This commit is contained in:
parent
516d53f9bf
commit
db45f08905
1 changed files with 10 additions and 0 deletions
|
|
@ -1681,6 +1681,16 @@ export default {
|
|||
this.path = pathname
|
||||
this.uri = this.url + this.path
|
||||
this.headers = []
|
||||
if (parsedCurl.query) {
|
||||
for (const key of Object.keys(parsedCurl.query)) {
|
||||
this.$store.commit("addParams", {
|
||||
key,
|
||||
value: parsedCurl.query[key],
|
||||
type: "query",
|
||||
active: true,
|
||||
})
|
||||
}
|
||||
}
|
||||
if (parsedCurl.headers) {
|
||||
for (const key of Object.keys(parsedCurl.headers)) {
|
||||
this.$store.commit("addHeaders", {
|
||||
|
|
|
|||
Loading…
Reference in a new issue