| | |
| | | import { useUserStore } from '@/stores/modules/user'; |
| | | import Taro from '@tarojs/taro'; |
| | | import * as authServices from '@12333/services/apiV2/auth'; |
| | | import { APP_ENV } from '@/constants'; |
| | | |
| | | defineOptions({ |
| | | name: 'verificationCodeLoginForm', |
| | |
| | | }, |
| | | { showLoading: false, getResponse: true } |
| | | ); |
| | | |
| | | if (res && process.env.APP_ENV === 'staging') { |
| | | if (res && APP_ENV === 'staging') { |
| | | // @ts-ignore |
| | | form.verificationCode = res?.data?.extras?.code ?? ''; |
| | | } |
| | | // @ts-ignore |
| | | return res?.data?.data; |
| | | } |
| | | |
| | | async function handleLogin() { |