mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-11 04:07:23 +08:00
📦 docs: 资源商店新增发布资源功能
This commit is contained in:
parent
b5b15c82f8
commit
09e00652c3
@ -47,17 +47,7 @@ function closePublishWindow() {
|
|||||||
|
|
||||||
const submitForm = () => {
|
const submitForm = () => {
|
||||||
const title = encodeURI(`Resource: ${newRes.value.name}`)
|
const title = encodeURI(`Resource: ${newRes.value.name}`)
|
||||||
const body = encodeURI(
|
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`)
|
||||||
JSON.stringify(
|
|
||||||
{
|
|
||||||
name: newRes.value.name,
|
|
||||||
desc: newRes.value.desc,
|
|
||||||
author: newRes.value.author,
|
|
||||||
homepage: newRes.value.homepage,
|
|
||||||
link: newRes.value.link,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
)
|
|
||||||
const issueURL = `${RepoUrl}/issues/new?labels=Resource&title=${title}&body=${body}`
|
const issueURL = `${RepoUrl}/issues/new?labels=Resource&title=${title}&body=${body}`
|
||||||
window.open(issueURL, '_blank')
|
window.open(issueURL, '_blank')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user