diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue index dd611b1751e48c3be7628ff1e2066256ff181dab..f9d347852de7d1b24e25a9a3b1cd59b2563e45d6 100644 --- a/src/components/Upload/index.vue +++ b/src/components/Upload/index.vue @@ -67,7 +67,7 @@ const props = defineProps({ type: String, default: '', }, - getServiceYaml: { + ServiceYaml: { type: String, default: '', }, @@ -182,7 +182,7 @@ const getServiceYamlFun = async (id: string) => { await api.querySingleApiData({ serviceId: id, edit: true }).then((res) => { if (res) { getServiceYaml.value = jsYaml.dump(res[1].result.data); - getServiceName.value = res[1].result.data.name; + getServiceName.value = res[1].result.data.info.title; } }); }; @@ -193,7 +193,7 @@ watch( () => props, () => { getServiceJson.value = props.getServiceJson; - getServiceYaml.value = props.getServiceYaml; + getServiceYaml.value = props.ServiceYaml; getServiceName.value = props.getServiceName; if (getServiceJson.value?.length) { activeServiceNameList.value = getServiceJson.value.map( @@ -313,7 +313,7 @@ onMounted(() => { />