MCPcopy Index your code
hub / github.com/dataease/SQLBot / getCurrentRouter

Function getCurrentRouter

frontend/src/utils/utils.ts:123–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

121 router.push(redirectPath as string)
122}
123export const getCurrentRouter = () => {
124 const hash = location.hash
125 if (!hash) return null
126 return hash.replace('#/login?redirect=', '')
127}
128
129export const setTitle = (title?: string) => {
130 document.title = title || 'SQLBot'

Callers 2

logoutFunction · 0.90
toUrlFunction · 0.90

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected