From d31dfa71978df1d389d1ebb10d57f6f22e1b696f Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Fri, 12 Jan 2024 11:24:48 +0800 Subject: [PATCH] feat(*): entity forms JSON/YAML preview --- src/composables/useFormGeneralConfig.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/composables/useFormGeneralConfig.ts b/src/composables/useFormGeneralConfig.ts index 180762b..fd0f4ed 100644 --- a/src/composables/useFormGeneralConfig.ts +++ b/src/composables/useFormGeneralConfig.ts @@ -1,6 +1,10 @@ +import { reactive, toRefs } from 'vue' import type { KongManagerBaseFormConfig } from '@kong-ui-public/entities-shared' import { useBaseGeneralConfig } from './useBaseGeneralConfig' export const useFormGeneralConfig = () => { - return useBaseGeneralConfig() as Pick + return reactive({ + ...toRefs(useBaseGeneralConfig()), + jsonYamlFormsEnabled: true, + }) as Pick }