|
|
|
@@ -97,7 +97,7 @@ export default async function initImage(){ |
|
|
|
// 只有请求不正常(状态码不为200)才会执行 |
|
|
|
// $('.ui.error.message').text(xhr.responseText) |
|
|
|
// $('.ui.error.message').css('display','block') |
|
|
|
$('.ui.positive.message').html(xhr.responseText).show().delay(1500).fadeOut(); |
|
|
|
$('.ui.negative.message').html(xhr.responseText).show().delay(1500).fadeOut(); |
|
|
|
}, |
|
|
|
complete:function(xhr){ |
|
|
|
$("#mask").css({"display":"none","z-index":"1"}) |
|
|
|
@@ -153,7 +153,7 @@ export default async function initImage(){ |
|
|
|
} |
|
|
|
}, |
|
|
|
error: function(xhr){ |
|
|
|
$('.ui.positive.message').text(xhr.responseText).show().delay(1500).fadeOut(); |
|
|
|
$('.ui.negative.message').text(xhr.responseText).show().delay(1500).fadeOut(); |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
|