From 8075009bbf16418cb5cd67276626efb47cb422bd Mon Sep 17 00:00:00 2001 From: cc500 <2014434568@qq.com> Date: Fri, 25 Apr 2025 16:10:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=BE=91=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=97=B6=20monaco=20=E8=B6=85=E9=95=BF=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Upload/index.vue | 11 +++++++---- src/views/api/index.vue | 2 +- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue index dd611b17..f9d34785 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(() => { />
- {{ getServiceName }} + {{ getServiceName }} {