no message

This commit is contained in:
kuaifan 2023-03-15 19:26:23 +08:00
parent 91f9aa8693
commit 4701834295
2 changed files with 15 additions and 12 deletions

View File

@ -953,7 +953,7 @@ export default {
data: { data: {
userid: [userid] userid: [userid]
}, },
checkRole: false skipAuthError: true
}).then(({data}) => { }).then(({data}) => {
tempUser = data.find(item => item.userid == userid); tempUser = data.find(item => item.userid == userid);
if (tempUser) { if (tempUser) {

View File

@ -121,16 +121,19 @@ export default {
return; return;
} }
const {ret, data, msg} = result; const {ret, data, msg} = result;
if (ret === -1 && params.checkRole !== false) { if (ret === -1) {
//身份丢失 state.userId = 0
$A.modalError({ if (params.skipAuthError !== true) {
content: msg, //身份丢失
onOk: () => { $A.modalError({
dispatch("logout") content: msg,
} onOk: () => {
}); dispatch("logout")
reject(result) }
return; });
reject(result)
return;
}
} }
if (ret === -2 && params.checkNick !== false) { if (ret === -2 && params.checkNick !== false) {
// 需要昵称 // 需要昵称
@ -516,7 +519,7 @@ export default {
data: { data: {
userid: [...new Set(array.map(({userid}) => userid))] userid: [...new Set(array.map(({userid}) => userid))]
}, },
checkRole: false skipAuthError: true
}).then(result => { }).then(result => {
time = $A.Time(); time = $A.Time();
array.forEach(value => { array.forEach(value => {