fix(mini): preserve taskbar and restore login

This commit is contained in:
2026-07-22 19:03:24 +08:00
parent aeb5276a73
commit b01928a5e4
9 changed files with 49 additions and 16 deletions

View File

@@ -192,7 +192,9 @@ function useSessionBase(session: ApiSession) {
}
function normalizeBaseUrl(value: string) {
return value.trim().replace(/\/+$/, '')
const normalized = value.trim().replace(/\/+$/, '')
if (!normalized || /^https?:\/\//i.test(normalized)) return normalized
return `http://${normalized}`
}
function slugify(value: string) {