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 | 391 | } |
| 392 | 392 | }, |
| 393 | 393 | err => { |
| 394 | + | |
| 394 | 395 | /* 加载错误处理 开始 */ |
| 395 | 396 | |
| 396 | 397 | Indicator.close(); |
| ... | ... | @@ -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 | 448 | } |
| 447 | 449 | }, |
| 448 | 450 | err => { |
| 451 | + | |
| 449 | 452 | /* 加载错误处理 开始 */ |
| 450 | 453 | |
| 451 | 454 | Indicator.close(); |
| ... | ... | @@ -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 | 469 | if (path) { |
| 470 | + | |
| 466 | 471 | // 上下文 |
| 467 | 472 | let context = this; |
| 468 | 473 | ... | ... |