1
0
mirror of https://github.com/nitezs/sub2clash.git synced 2024-12-23 20:34:41 -05:00
This commit is contained in:
Nite07 2023-09-17 16:20:15 +08:00
parent be9bdd269e
commit 4f4a633035
2 changed files with 2 additions and 2 deletions

View File

@ -46,5 +46,5 @@ func ShortLinkGetHandler(c *gin.Context) {
c.String(404, "未找到短链接") c.String(404, "未找到短链接")
return return
} }
c.Redirect(302, "/"+shortLink.Url) c.Redirect(302, "../"+shortLink.Url)
} }

View File

@ -298,7 +298,7 @@
function generateShortLink() { function generateShortLink() {
const apiShortLink = document.getElementById("apiShortLink"); const apiShortLink = document.getElementById("apiShortLink");
axios.post("/short", { axios.post("./short", {
"url": generateURI() "url": generateURI()
}, { }, {
headers: { headers: {