Skip to content
Snippets Groups Projects
Commit f0be021d authored by syuilo's avatar syuilo
Browse files

Fix bug

parent 7eac0bb1
No related branches found
No related tags found
No related merge requests found
......@@ -457,7 +457,9 @@ export default class MiOS extends EventEmitter {
const id = Math.random().toString();
stream.once(`api-res:${id}`, res => {
if (res.res) {
if (res == null || Object.keys(res).length == 0) {
resolve(null);
} else if (res.res) {
resolve(res.res);
} else {
reject(res.e);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment