| | |
| | | import { useToast } from 'wot-design-uni' |
| | | import { login, getUserInfo } from '@/service/login' |
| | | import type { UserInfo } from '@/service/login.d' |
| | | import { TestEnum } from '@/typings' |
| | | import { tabbarStore } from '@/components/fg-tabbar/tabbar' |
| | | const userStore = useUserStore() |
| | | const accessStore = useAccessStore() |
| | | const configStore = useSystemConfigStore() |
| | | const { success: showSuccess } = useToast() |
| | | |
| | | const model = reactive<{ |
| | | username: string |
| | |
| | | userStore.setUserInfo(userInfo) |
| | | const { query } = currRoute() |
| | | uni.switchTab({ url: '/pages/home/index' }) |
| | | tabbarStore?.setCurIdx(0) |
| | | tabbarStore?.setLastIdx(0) |
| | | } |
| | | </script> |
| | | |