refactor: lazy compute codegen code and error handling

This commit is contained in:
Andrew Bastin
2022-01-01 16:08:15 +05:30
parent 314c0968b1
commit 2ec401c766
2 changed files with 19 additions and 8 deletions

View File

@@ -121,6 +121,8 @@ const requestCode = computed(() => {
getCurrentEnvironment()
)
if (!props.show) return ""
const result = generateCode(codegenType.value, effectiveRequest)
if (O.isSome(result)) {