From df7d180282553172b103731a64c923012384ef31 Mon Sep 17 00:00:00 2001 From: Xiaoyan Rao <270668624@qq.com> Date: Thu, 16 Nov 2023 17:22:07 +0800 Subject: [PATCH] fix(kconfig): remove kong version from kconfig.js --- src/components/MakeAWish.vue | 5 +++-- src/composables/useDetailGeneralConfig.ts | 5 ++++- src/composables/useDocsLink.ts | 11 ++++++++--- src/composables/useFormGeneralConfig.ts | 5 ++++- src/composables/useGatewayFeatureSupported.ts | 7 ++++++- src/composables/useListGeneralConfig.ts | 5 ++++- src/config.ts | 6 +----- src/pages/overview/Overview.vue | 5 +++-- 8 files changed, 33 insertions(+), 16 deletions(-) diff --git a/src/components/MakeAWish.vue b/src/components/MakeAWish.vue index 663ba62..587216a 100644 --- a/src/components/MakeAWish.vue +++ b/src/components/MakeAWish.vue @@ -16,12 +16,13 @@ import { computed } from 'vue' import { useRoute } from 'vue-router' import { useI18n } from '@/composables/useI18n' -import { config } from 'config' +import { useInfoStore } from '@/stores/info' const route = useRoute() const { t } = useI18n() +const useInfo = useInfoStore() -const mailToUrl = computed(() => `mailto:wish@konghq.com?subject=${t('wish.subject', { title: `${route.meta.title} | Kong Manager OSS@${config.GATEWAY_VERSION}` })}`) +const mailToUrl = computed(() => `mailto:wish@konghq.com?subject=${t('wish.subject', { title: `${route.meta.title} | Kong Manager OSS@${useInfo.kongVersion}` })}`)