wupengfei
4 天以前 162803b10e1f99268533e40814380100c040e274
apps/cMiniApp/src/subpackages/login/registerForm/registerForm.vue
@@ -62,10 +62,16 @@
import Taro from '@tarojs/taro';
import { ResponseCode } from '@12333/constants';
import * as authServices from '@12333/services/apiV2/auth';
import { APP_ENV } from '@/constants';
import { useUserStore } from '@/stores/modules/user';
defineOptions({
  name: 'registerForm',
});
const userStore = useUserStore();
const { jump } = useLoginedJump();
const state = reactive({
  policyChecked: false,
@@ -109,12 +115,10 @@
    }
  );
  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 handleRegister() {
@@ -129,8 +133,9 @@
        let res = await authServices.registerPersonalUser(params);
        if (res) {
          Message.success('注册成功', {
            onClosed: () => {
              goLogin();
            onClosed: async () => {
              userStore.loginSuccess(res);
              jump();
            },
          });
        }