Commit f951591361578241b60156f35aa00544a959efae
1 parent
e1fe054d
1.解决打jar包时刷新问题
Showing
1 changed file
with
4 additions
and
2 deletions
src/main/resources/static/index.html
| ... | ... | @@ -545,8 +545,10 @@ |
| 545 | 545 | dictionaryUtils.transformDom(dicts); |
| 546 | 546 | }); |
| 547 | 547 | |
| 548 | - $(document).on('pjax:error', function (e) { | |
| 549 | - alert('无效的url'); | |
| 548 | + $(document).on('pjax:error', function (e, xhr) { | |
| 549 | + if (xhr.status === 404) { | |
| 550 | + alert('无效的url'); | |
| 551 | + } | |
| 550 | 552 | e.preventDefault(); |
| 551 | 553 | }); |
| 552 | 554 | ... | ... |