fix: aggregate envs in har generation
This commit is contained in:
@@ -91,7 +91,7 @@ import {
|
|||||||
getEffectiveRESTRequest,
|
getEffectiveRESTRequest,
|
||||||
resolvesEnvsInBody,
|
resolvesEnvsInBody,
|
||||||
} from "~/helpers/utils/EffectiveURL"
|
} from "~/helpers/utils/EffectiveURL"
|
||||||
import { getCurrentEnvironment } from "~/newstore/environments"
|
import { Environment, getAggregateEnvs } from "~/newstore/environments"
|
||||||
import { getRESTRequest } from "~/newstore/RESTSession"
|
import { getRESTRequest } from "~/newstore/RESTSession"
|
||||||
import { useI18n, useToast } from "~/helpers/utils/composables"
|
import { useI18n, useToast } from "~/helpers/utils/composables"
|
||||||
import {
|
import {
|
||||||
@@ -121,7 +121,11 @@ const copyIcon = ref("copy")
|
|||||||
const errorState = ref(false)
|
const errorState = ref(false)
|
||||||
|
|
||||||
const requestCode = computed(() => {
|
const requestCode = computed(() => {
|
||||||
const env = getCurrentEnvironment()
|
const aggregateEnvs = getAggregateEnvs()
|
||||||
|
const env: Environment = {
|
||||||
|
name: "Env",
|
||||||
|
variables: aggregateEnvs,
|
||||||
|
}
|
||||||
const effectiveRequest = getEffectiveRESTRequest(request.value, env)
|
const effectiveRequest = getEffectiveRESTRequest(request.value, env)
|
||||||
|
|
||||||
if (!props.show) return ""
|
if (!props.show) return ""
|
||||||
|
|||||||
Reference in New Issue
Block a user