Showing
1 changed file
with
10 additions
and
8 deletions
@@ -144,19 +144,21 @@ layui.define(['laytpl', 'layer'], function(exports){ | @@ -144,19 +144,21 @@ layui.define(['laytpl', 'layer'], function(exports){ | ||
144 | }); | 144 | }); |
145 | } | 145 | } |
146 | }else if(e.status == '500'){ | 146 | }else if(e.status == '500'){ |
147 | - layer.msg("服务异常,请联系管理员!</br>错误信息:"+e.responseJSON["resp_msg"], { | ||
148 | - icon: 7, time: 5000 | ||
149 | - }); | 147 | + // layer.msg("服务异常,请联系管理员!</br>错误信息:"+e.responseJSON["resp_msg"], { |
148 | + // icon: 7, time: 5000 | ||
149 | + // }); | ||
150 | + console.error("服务异常,请联系管理员",e); | ||
150 | }else if(e.status == '403'){ | 151 | }else if(e.status == '403'){ |
151 | layer.msg("无权限访问,请联系管理员!", { | 152 | layer.msg("无权限访问,请联系管理员!", { |
152 | icon: 7, time: 5000 | 153 | icon: 7, time: 5000 |
153 | }); | 154 | }); |
154 | } else { | 155 | } else { |
155 | - var errorMsg = [ | ||
156 | - '请求异常,请重试<br><cite>错误信息:</cite>' + code | ||
157 | - , debug() | ||
158 | - ].join(''); | ||
159 | - view.error(errorMsg); | 156 | + // var errorMsg = [ |
157 | + // '请求异常,请重试<br><cite>错误信息:</cite>' + code | ||
158 | + // , debug() | ||
159 | + // ].join(''); | ||
160 | + // view.error(errorMsg); | ||
161 | + console.error("'请求异常,请重试",e); | ||
160 | } | 162 | } |
161 | typeof error === 'function' && error(e, code); | 163 | typeof error === 'function' && error(e, code); |
162 | } | 164 | } |
-
Please register or login to post a comment