From 09e00652c3549944a77ec94672e5372c6a9f83f7 Mon Sep 17 00:00:00 2001 From: snowykami Date: Tue, 17 Sep 2024 14:40:54 +0800 Subject: [PATCH] =?UTF-8?q?:package:=20docs:=20=E8=B5=84=E6=BA=90=E5=95=86?= =?UTF-8?q?=E5=BA=97=E6=96=B0=E5=A2=9E=E5=8F=91=E5=B8=83=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/components/ResStore.vue | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/docs/components/ResStore.vue b/docs/components/ResStore.vue index d363c6d2..e8a1da67 100644 --- a/docs/components/ResStore.vue +++ b/docs/components/ResStore.vue @@ -47,17 +47,7 @@ function closePublishWindow() { const submitForm = () => { const title = encodeURI(`Resource: ${newRes.value.name}`) - const body = encodeURI( - JSON.stringify( - { - name: newRes.value.name, - desc: newRes.value.desc, - author: newRes.value.author, - homepage: newRes.value.homepage, - link: newRes.value.link, - } - ) - ) + let body = encodeURI(`---\nname: ${newRes.value.name}\ndesc: ${newRes.value.desc}\nauthor: ${newRes.value.author}\nhomepage: ${newRes.value.homepage}\nlink: ${newRes.value.link}\n---\n`) const issueURL = `${RepoUrl}/issues/new?labels=Resource&title=${title}&body=${body}` window.open(issueURL, '_blank') }