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

Function toLoginPage

frontend/src/utils/utils.ts:106–116  ·  view source on GitHub ↗
(fullPath: string)

Source from the content-addressed store, hash-verified

104}
105
106export const toLoginPage = (fullPath: string) => {
107 if (!fullPath || fullPath === '/') {
108 return {
109 path: '/login',
110 }
111 }
112 return {
113 path: '/login',
114 query: { redirect: fullPath },
115 }
116}
117
118export const toLoginSuccess = (router: any) => {
119 const redirect = router?.currentRoute?.value?.query?.redirect

Callers 1

watchRouterFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected