diff --git a/src/modules/system/plugins/PluginDetail.vue b/src/modules/system/plugins/PluginDetail.vue index c734e771..01e6ab05 100644 --- a/src/modules/system/plugins/PluginDetail.vue +++ b/src/modules/system/plugins/PluginDetail.vue @@ -85,7 +85,7 @@ const handleFetchSettings = async () => { const handleFetchConfigMap = async () => { try { const response = await axiosInstance.get( - `/api/v1alpha1/configmaps/${plugin.value.spec.configmapName}` + `/api/v1alpha1/configmaps/${plugin.value.spec.configMapName}` ); configmap.value = response.data; @@ -103,8 +103,8 @@ const handleSaveConfigMap = async () => { try { saving.value = true; - if (!configmap.value.metadata.name && plugin.value.spec.configmapName) { - configmap.value.metadata.name = plugin.value.spec.configmapName; + if (!configmap.value.metadata.name && plugin.value.spec.configMapName) { + configmap.value.metadata.name = plugin.value.spec.configMapName; } settings.value.spec.forEach((item: SettingSpec) => { diff --git a/src/types/extension.d.ts b/src/types/extension.d.ts index 51f419d1..831be7e9 100644 --- a/src/types/extension.d.ts +++ b/src/types/extension.d.ts @@ -49,7 +49,7 @@ export interface PluginSpec { enabled?: boolean; module?: PluginModule; settingName?: string; - configmapName?: string; + configMapName?: string; } export interface PluginStatus {