Sfoglia il codice sorgente

账户登录接口(与之前一样,只是phone字段改为了account,兼容了邮箱和手机号

lifanagju_citu 8 mesi fa
parent
commit
99c4494682
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/store/user.js

+ 1 - 0
src/store/user.js

@@ -58,6 +58,7 @@ export const useUserStore = defineStore('user',
       async handlePasswordLogin(data) {
         return new Promise((resolve, reject) => {
           const loginApi = data.loginType === 330 ? passwordLoginOfEnterprise : passwordLogin
+          data.account = data.phone
           loginApi(data).then(res => {
             setToken(res.accessToken)
             setRefreshToken(res.refreshToken)