flat: 123

This commit is contained in:
Apcallover
2024-03-20 17:16:16 +08:00
parent 53cfc53ba8
commit 36ed184cd4
7 changed files with 41 additions and 7 deletions

View File

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