From 36eb94b7c7e1a8b008a6da7be99d19657f3f13d6 Mon Sep 17 00:00:00 2001 From: Leopoldthecoder Date: Fri, 5 Jan 2024 14:39:14 +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 180762b3..8712a2f1 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()), + jsonYamlMilestone2Enabled: true, + }) as Pick }