chore: update support channels (#27188)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Nite Knite
2025-10-21 15:48:02 +08:00
committed by GitHub
parent 05f66fcf0d
commit 9a9d6a4a2b
26 changed files with 70 additions and 27 deletions

View File

@@ -115,10 +115,10 @@ export type IOtherOptions = {
}
function jumpTo(url: string) {
if(!url)
if (!url)
return
const targetPath = new URL(url, globalThis.location.origin).pathname
if(targetPath === globalThis.location.pathname)
if (targetPath === globalThis.location.pathname)
return
globalThis.location.href = url
}
@@ -136,7 +136,7 @@ const WBB_APP_LOGIN_PATH = '/webapp-signin'
function requiredWebSSOLogin(message?: string, code?: number) {
const params = new URLSearchParams()
// prevent redirect loop
if(globalThis.location.pathname === WBB_APP_LOGIN_PATH)
if (globalThis.location.pathname === WBB_APP_LOGIN_PATH)
return
params.append('redirect_url', encodeURIComponent(`${globalThis.location.pathname}${globalThis.location.search}`))