diff --git a/src/stores/Auth.js b/src/stores/Auth.js index 5d081fc..0011bac 100644 --- a/src/stores/Auth.js +++ b/src/stores/Auth.js @@ -2,17 +2,15 @@ const KEY_USER_ID = 'KEY_USER_ID' class Auth { - constructor() { - } + // {"errcode":0,"errmsg":"ok","result":{"nick":"廖一军","unionId":"j7cuUCplZe1ZiiqjQNUUmFwiEiE","avatarUrl":"https://static-legacy.dingtalk.com/media/lALPBDDrhXr716HNAoDNAoA_640_640.png","openId":"iioljiPmZ4RPoOYpkFiSn7IKAiEiE","mobile":"18777396951","stateCode":"86","email":"lyj@hainatravel.com","opisn":"383"}} + userId = '383' + username = '廖一军' + avatarUrl = 'https://static-legacy.dingtalk.com/media/lALPBDDrhXr716HNAoDNAoA_640_640.png' + stateCode = '86' + email = 'lyj@hainatravel.com' + openId = 'iioljiPmZ4RPoOYpkFiSn7IKAiEiE' + accountList = ['LYJ', 'LYJAH', 'LYJGH'] - // - - // loginUser: - - // HT 账号 OP_SN - userId = 1 - - openId = '123456789' } export default Auth diff --git a/src/views/AuthApp.jsx b/src/views/AuthApp.jsx index 7cddf5d..f0c8e02 100644 --- a/src/views/AuthApp.jsx +++ b/src/views/AuthApp.jsx @@ -82,7 +82,7 @@ function AuthApp() { type: 'divider', }, { - label: 退出, + label: 退出, key: '3', }, ] diff --git a/src/views/DingdingQRCode.jsx b/src/views/DingdingQRCode.jsx index 3c091a4..fe2a3b7 100644 --- a/src/views/DingdingQRCode.jsx +++ b/src/views/DingdingQRCode.jsx @@ -38,7 +38,6 @@ function DingdingQRCode() { fetch(`https://p9axztuwd7x8a7.mycht.cn/dingtalk/dingtalkwork/WhatsAppAuth?authCode=${authCode}`) .then(response => response.json()) .then(json => { - // {"errcode":0,"errmsg":"ok","result":{"nick":"廖一军","unionId":"j7cuUCplZe1ZiiqjQNUUmFwiEiE","avatarUrl":"https://static-legacy.dingtalk.com/media/lALPBDDrhXr716HNAoDNAoA_640_640.png","openId":"iioljiPmZ4RPoOYpkFiSn7IKAiEiE","mobile":"18777396951","stateCode":"86","email":"lyj@hainatravel.com","opisn":"383"}} if (json.errcode === 0) { loginUser.userId = json.result.opisn loginUser.accountName = json.result.opisn