feat(custom): build
This commit is contained in:
@@ -31,16 +31,12 @@ const request = (
|
||||
icon: "none",
|
||||
});
|
||||
reject(data);
|
||||
return;
|
||||
} else {
|
||||
resolve(data);
|
||||
}
|
||||
resolve(data);
|
||||
},
|
||||
fail: () => {
|
||||
Taro.showToast({
|
||||
title: "服务器异常",
|
||||
icon: "none",
|
||||
});
|
||||
reject({ code: 1, msg: "服务器异常" });
|
||||
fail: (err) => {
|
||||
reject(err);
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user