mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-07 18:07:05 +00:00
no message
This commit is contained in:
parent
91f9aa8693
commit
4701834295
@ -953,7 +953,7 @@ export default {
|
||||
data: {
|
||||
userid: [userid]
|
||||
},
|
||||
checkRole: false
|
||||
skipAuthError: true
|
||||
}).then(({data}) => {
|
||||
tempUser = data.find(item => item.userid == userid);
|
||||
if (tempUser) {
|
||||
|
||||
25
resources/assets/js/store/actions.js
vendored
25
resources/assets/js/store/actions.js
vendored
@ -121,16 +121,19 @@ export default {
|
||||
return;
|
||||
}
|
||||
const {ret, data, msg} = result;
|
||||
if (ret === -1 && params.checkRole !== false) {
|
||||
//身份丢失
|
||||
$A.modalError({
|
||||
content: msg,
|
||||
onOk: () => {
|
||||
dispatch("logout")
|
||||
}
|
||||
});
|
||||
reject(result)
|
||||
return;
|
||||
if (ret === -1) {
|
||||
state.userId = 0
|
||||
if (params.skipAuthError !== true) {
|
||||
//身份丢失
|
||||
$A.modalError({
|
||||
content: msg,
|
||||
onOk: () => {
|
||||
dispatch("logout")
|
||||
}
|
||||
});
|
||||
reject(result)
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (ret === -2 && params.checkNick !== false) {
|
||||
// 需要昵称
|
||||
@ -516,7 +519,7 @@ export default {
|
||||
data: {
|
||||
userid: [...new Set(array.map(({userid}) => userid))]
|
||||
},
|
||||
checkRole: false
|
||||
skipAuthError: true
|
||||
}).then(result => {
|
||||
time = $A.Time();
|
||||
array.forEach(value => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user