0518
This commit is contained in:
@@ -83,7 +83,7 @@ $http.getAliToken = function(callback) {
|
||||
//请求开始拦截器
|
||||
$http.requestStart = function(options) {
|
||||
// console.log("请求开始", options);
|
||||
if (options.load) {
|
||||
if (options.load && options.data.loadAnimate != 'none') {
|
||||
//打开加载动画
|
||||
store.commit("setLoadingShow", true);
|
||||
}
|
||||
@@ -293,7 +293,8 @@ $http.dataFactory = async function(res) {
|
||||
data: res.data
|
||||
});
|
||||
} else { //其他错误提示
|
||||
if (res.isPrompt) {
|
||||
console.log(httpData.info || httpData.msg)
|
||||
if (res.isPrompt && res.data.loadAnimate != 'none') {
|
||||
uni.showToast({
|
||||
title: httpData.info || httpData.msg,
|
||||
icon: "none",
|
||||
|
||||
Reference in New Issue
Block a user