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