no message
This commit is contained in:
parent
a3916c71e8
commit
6e42586dcc
20
resources/assets/js/store/actions.js
vendored
20
resources/assets/js/store/actions.js
vendored
@ -1087,16 +1087,16 @@ export default {
|
|||||||
* @param dispatch
|
* @param dispatch
|
||||||
*/
|
*/
|
||||||
getDialogs({state, dispatch}) {
|
getDialogs({state, dispatch}) {
|
||||||
return new Promise(function (resolve, reject) {
|
if (state.userId === 0) {
|
||||||
dispatch("call", {
|
state.dialogs = [];
|
||||||
url: 'dialog/lists',
|
return;
|
||||||
}).then(result => {
|
}
|
||||||
dispatch("saveDialog", result.data.data);
|
dispatch("call", {
|
||||||
resolve(result);
|
url: 'dialog/lists',
|
||||||
}).catch(e => {
|
}).then(result => {
|
||||||
console.error(e);
|
dispatch("saveDialog", result.data.data);
|
||||||
reject(e);
|
}).catch(e => {
|
||||||
});
|
console.error(e);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user