1
0
mirror of https://github.com/bestnite/sub2clash.git synced 2025-12-14 02:10:14 +00:00

fix: update short link

This commit is contained in:
2025-12-02 23:16:10 +08:00
parent 516657f849
commit f16779b441
3 changed files with 12 additions and 11 deletions

View File

@@ -240,6 +240,9 @@ export class Sub2clashApp extends LitElement {
.get(`./short/${s[1]}`)
.then((resp) => {
this.config = resp.data;
const parsedUrl = new URL(this.reverseUrl);
this.shortLinkID = parsedUrl.pathname.split("/").filter(Boolean).pop() ?? "";
this.shortLinkPasswd = parsedUrl.searchParams.get("password") ?? "";
})
.catch((err: AxiosError) => {
if (err.response && err.response.status == 401) {