mirror of https://github.com/halo-dev/halo-admin
typo: configmapName -> configMapName
Signed-off-by: Ryan Wang <i@ryanc.cc>pull/588/head
parent
64240d3caf
commit
ab0a7deda3
|
@ -85,7 +85,7 @@ const handleFetchSettings = async () => {
|
||||||
const handleFetchConfigMap = async () => {
|
const handleFetchConfigMap = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await axiosInstance.get(
|
const response = await axiosInstance.get(
|
||||||
`/api/v1alpha1/configmaps/${plugin.value.spec.configmapName}`
|
`/api/v1alpha1/configmaps/${plugin.value.spec.configMapName}`
|
||||||
);
|
);
|
||||||
configmap.value = response.data;
|
configmap.value = response.data;
|
||||||
|
|
||||||
|
@ -103,8 +103,8 @@ const handleSaveConfigMap = async () => {
|
||||||
try {
|
try {
|
||||||
saving.value = true;
|
saving.value = true;
|
||||||
|
|
||||||
if (!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;
|
configmap.value.metadata.name = plugin.value.spec.configMapName;
|
||||||
}
|
}
|
||||||
|
|
||||||
settings.value.spec.forEach((item: SettingSpec) => {
|
settings.value.spec.forEach((item: SettingSpec) => {
|
||||||
|
|
|
@ -49,7 +49,7 @@ export interface PluginSpec {
|
||||||
enabled?: boolean;
|
enabled?: boolean;
|
||||||
module?: PluginModule;
|
module?: PluginModule;
|
||||||
settingName?: string;
|
settingName?: string;
|
||||||
configmapName?: string;
|
configMapName?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface PluginStatus {
|
export interface PluginStatus {
|
||||||
|
|
Loading…
Reference in New Issue