mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-23 03:17:37 +08:00
📦 docs: 资源商店新增发布资源功能
This commit is contained in:
parent
b5b15c82f8
commit
09e00652c3
@ -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')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user