Commit 425442796372ed05f7eb14361381b73591887eef
1 parent
8fc1355a
修复用户信息更新,手机号和邮箱号校验bug
Showing
1 changed file
with
5 additions
and
3 deletions
src/main/resources/templates/system/user/profile/edit.html
... | ... | @@ -81,7 +81,7 @@ |
81 | 81 | } |
82 | 82 | }, |
83 | 83 | dataFilter: function (data, type) { |
84 | - if (data == "0") return true; | |
84 | + if (data == "\"0\"") return true; | |
85 | 85 | else return false; |
86 | 86 | } |
87 | 87 | } |
... | ... | @@ -102,8 +102,10 @@ |
102 | 102 | } |
103 | 103 | }, |
104 | 104 | dataFilter: function (data, type) { |
105 | - if (data == "0") return true; | |
106 | - else return false; | |
105 | + if (data == "\"0\"") | |
106 | + return true; | |
107 | + else | |
108 | + return false; | |
107 | 109 | } |
108 | 110 | } |
109 | 111 | }, |
... | ... |