(fullPath: string)
| 104 | } |
| 105 | |
| 106 | export 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 | |
| 118 | export const toLoginSuccess = (router: any) => { |
| 119 | const redirect = router?.currentRoute?.value?.query?.redirect |