diff --git a/README.md b/README.md index 836a407..2783dc2 100644 --- a/README.md +++ b/README.md @@ -64,4 +64,4 @@ ## TODO -- [ ] 可视化面板 \ No newline at end of file +- [x] 可视化面板 \ No newline at end of file diff --git a/api/templates/index.html b/api/templates/index.html index 3dc6064..08f351d 100644 --- a/api/templates/index.html +++ b/api/templates/index.html @@ -113,7 +113,8 @@

sub2clash

@@ -255,7 +256,7 @@

sub2clash

queryParams.push(`sort=${sort}`); // 组合最终的API链接 - document.getElementById("apiLink").value = `${window.location.origin}${endpoint}?${queryParams.join('&')}`; + document.getElementById("apiLink").value = `${window.location.origin}${window.location.pathname}${endpoint}?${queryParams.join('&')}`; }