|  |  | 
 |  |  | }) | 
 |  |  |  | 
 |  |  | const login = async () => { | 
 |  |  |     if (!from.openid) return Toast('openid不能为空') | 
 |  |  |     if (!from.unionid) return Toast('unionid不能为空') | 
 |  |  |     // if (!from.openid) return Toast('openid不能为空') | 
 |  |  |     // if (!from.unionid) return Toast('unionid不能为空') | 
 |  |  |     if (!from.companyId) return Toast('企业代码不能为空') | 
 |  |  |     if (!from.username) return Toast('手机号不能为空') | 
 |  |  |     if (!from.password) return Toast('密码不能为空') | 
 |  |  | 
 |  |  |     if (res.code === 200) { | 
 |  |  |         let info = await getUserInfo() | 
 |  |  |         if (info.code === 200) { | 
 |  |  |             await store.commit('setEntrance', 'DD') | 
 |  |  |             await store.commit('setEntrance', 'WX') | 
 |  |  |             await store.commit('setUserInfo', info.data) | 
 |  |  |             await store.dispatch('getMenuList', 2) | 
 |  |  |             await router.replace('/workbench') | 
 |  |  | 
 |  |  |                 if (res.data.loginStatus == 0) { | 
 |  |  |                     let info = await getUserInfo() | 
 |  |  |                     if (info.code === 200) { | 
 |  |  |                         await store.commit('setEntrance', 'DD') | 
 |  |  |                         await store.commit('setEntrance', 'WX') | 
 |  |  |                         await store.commit('setUserInfo', info.data) | 
 |  |  |                         await store.dispatch('getMenuList', 2) | 
 |  |  |                         await router.replace('/workbench') | 
 |  |  | 
 |  |  |                     input { | 
 |  |  |                         flex: 1; | 
 |  |  |                         height: 100%; | 
 |  |  |                         padding: 0 !important; | 
 |  |  |                         font-size: 30px; | 
 |  |  |                         font-family: PingFangSC-Regular, PingFang SC; | 
 |  |  |                         font-weight: 400; |