refactor: enhance SystemSetting submission logic and handle empty WorkerUrl

This commit is contained in:
CaIon
2025-04-19 00:20:25 +08:00
parent 17e8a3432a
commit 79c6dd08c9
2 changed files with 7 additions and 3 deletions

View File

@@ -143,6 +143,7 @@ export function openPage(url) {
}
export function removeTrailingSlash(url) {
if (!url) return '';
if (url.endsWith('/')) {
return url.slice(0, -1);
} else {