mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-27 15:50:43 +00:00
no message
This commit is contained in:
parent
91f9aa8693
commit
4701834295
@ -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) {
|
||||||
|
|||||||
25
resources/assets/js/store/actions.js
vendored
25
resources/assets/js/store/actions.js
vendored
@ -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 => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user