Commit e1e62eaa2a1d1944413808aa39460327320f5e0f
1 parent
447d2185
购好物,代码格式优化~
Showing
1 changed file
with
5 additions
and
0 deletions
src/main.js
| @@ -391,6 +391,7 @@ Vue.prototype.http = function(path, data, callback, ext) { | @@ -391,6 +391,7 @@ Vue.prototype.http = function(path, data, callback, ext) { | ||
| 391 | } | 391 | } |
| 392 | }, | 392 | }, |
| 393 | err => { | 393 | err => { |
| 394 | + | ||
| 394 | /* 加载错误处理 开始 */ | 395 | /* 加载错误处理 开始 */ |
| 395 | 396 | ||
| 396 | Indicator.close(); | 397 | Indicator.close(); |
| @@ -403,6 +404,7 @@ Vue.prototype.http = function(path, data, callback, ext) { | @@ -403,6 +404,7 @@ Vue.prototype.http = function(path, data, callback, ext) { | ||
| 403 | } | 404 | } |
| 404 | 405 | ||
| 405 | /* 加载错误处理 结束 */ | 406 | /* 加载错误处理 结束 */ |
| 407 | + | ||
| 406 | } | 408 | } |
| 407 | ); | 409 | ); |
| 408 | } | 410 | } |
| @@ -446,6 +448,7 @@ Vue.prototype.http = function(path, data, callback, ext) { | @@ -446,6 +448,7 @@ Vue.prototype.http = function(path, data, callback, ext) { | ||
| 446 | } | 448 | } |
| 447 | }, | 449 | }, |
| 448 | err => { | 450 | err => { |
| 451 | + | ||
| 449 | /* 加载错误处理 开始 */ | 452 | /* 加载错误处理 开始 */ |
| 450 | 453 | ||
| 451 | Indicator.close(); | 454 | Indicator.close(); |
| @@ -458,11 +461,13 @@ Vue.prototype.http = function(path, data, callback, ext) { | @@ -458,11 +461,13 @@ Vue.prototype.http = function(path, data, callback, ext) { | ||
| 458 | } | 461 | } |
| 459 | 462 | ||
| 460 | /* 加载错误处理 结束 */ | 463 | /* 加载错误处理 结束 */ |
| 464 | + | ||
| 461 | } | 465 | } |
| 462 | ); | 466 | ); |
| 463 | } | 467 | } |
| 464 | 468 | ||
| 465 | if (path) { | 469 | if (path) { |
| 470 | + | ||
| 466 | // 上下文 | 471 | // 上下文 |
| 467 | let context = this; | 472 | let context = this; |
| 468 | 473 |