Browse Source

登录接口新增参数

yuanmingze 3 tháng trước cách đây
mục cha
commit
00bcf96f00
2 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 1 0
      src/services/modules/login/type.d.ts
  2. 2 0
      src/views/login/index.vue

+ 1 - 0
src/services/modules/login/type.d.ts

@@ -2,6 +2,7 @@
 export interface LoginEtssmsRequest {
   mobile: string
   code: string
+  pushRecordId: string
 }
 
 // src/types/auth.ts

+ 2 - 0
src/views/login/index.vue

@@ -87,6 +87,7 @@ const route = useRoute()
 const formData = reactive<LoginEtssmsRequest>({
   mobile: '',
   code: '',
+  pushRecordId: '',
 })
 
 const sendEtsSms = reactive<SendTtsSmsRequest>({
@@ -246,6 +247,7 @@ onBeforeMount(() => {
   if (pushRecordId) {
     sendEtsSms.pushRecordId = pushRecordId as string
     userStore.setPushRecordId(pushRecordId as string)
+    formData.pushRecordId = pushRecordId as string
     getPubName()
   } else {
     showToast('登录链接存在不完整或者输入错误,请重新复制链接登录')