mirror of
https://github.com/nitezs/sub2clash.git
synced 2024-12-24 11:14:41 -05:00
fix
This commit is contained in:
parent
be9bdd269e
commit
4f4a633035
@ -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)
|
||||||
}
|
}
|
||||||
|
@ -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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user