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,7 +121,9 @@ 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
if (params.skipAuthError !== true) {
//身份丢失 //身份丢失
$A.modalError({ $A.modalError({
content: msg, content: msg,
@ -132,6 +134,7 @@ export default {
reject(result) reject(result)
return; return;
} }
}
if (ret === -2 && params.checkNick !== false) { if (ret === -2 && params.checkNick !== false) {
// 需要昵称 // 需要昵称
dispatch("userEditInput", 'nickname').then(() => { dispatch("userEditInput", 'nickname').then(() => {
@ -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 => {