Showing
2 changed files
with
5 additions
and
8 deletions
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | * @Author: Targaryen | 2 | * @Author: Targaryen |
3 | * @Date: 2017-04-13 14:43:19 | 3 | * @Date: 2017-04-13 14:43:19 |
4 | * @Last Modified by: Targaryen | 4 | * @Last Modified by: Targaryen |
5 | - * @Last Modified time: 2017-04-18 11:36:23 | 5 | + * @Last Modified time: 2017-04-18 16:39:47 |
6 | */ | 6 | */ |
7 | 7 | ||
8 | /* *************** | 8 | /* *************** |
@@ -82,15 +82,11 @@ $sureResetBtn.on('click', function() { | @@ -82,15 +82,11 @@ $sureResetBtn.on('click', function() { | ||
82 | success: function(result) { | 82 | success: function(result) { |
83 | tip.show(result.message); | 83 | tip.show(result.message); |
84 | 84 | ||
85 | - let href = '/passport/password/resetsuccess'; | ||
86 | - | ||
87 | - if (result.code !== 200) { | ||
88 | - href = '/passport/login'; | ||
89 | - } | ||
90 | - | 85 | + if (result.code === 402) { |
91 | setTimeout(function() { | 86 | setTimeout(function() { |
92 | - window.location.href = href; | 87 | + window.location.href = '/passport/login'; |
93 | }, 500); | 88 | }, 500); |
89 | + } | ||
94 | }, | 90 | }, |
95 | error: function() { | 91 | error: function() { |
96 | tip.show('系统异常!'); | 92 | tip.show('系统异常!'); |
-
Please register or login to post a comment