flat: 登陆

This commit is contained in:
Apcallover
2024-03-20 20:21:25 +08:00
parent 0e959356c3
commit e1726ca03a
6 changed files with 99 additions and 29 deletions

View File

@@ -76,6 +76,7 @@ const user = {
return new Promise((resolve, reject) => {
loginByUsername(userInfo.tenantId, userInfo.username, md5(userInfo.password), userInfo.type, userInfo.key,
userInfo.code, userInfo.token).then(res => {
const data = res.data;
if (data.error_description) {
uni.showToast({
@@ -88,7 +89,6 @@ const user = {
commit('SET_TENANT_ID', data.tenant_id);
commit('SET_USER_INFO', data);
dispatch('refreshAuthState')
cons.log('开始1')
dispatch('startRefreshNewsTimer')
startRefreshToken();
}