Skip to content

Commit 965e5f8

Browse files
committed
add captcha err
Signed-off-by: zhangtianli2006 <49156174+zhangtianli2006@users.noreply.github.com>
1 parent 12ae165 commit 965e5f8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/components/user/register.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ export default {
117117
if (err.request.status === 400) {
118118
// HTTP 400 Bad Request
119119
this.$SegmentMessage.error(this, JSON.parse(err.request.response).detail);
120+
} else if (err.request.status === 406){
121+
// HTTP 406 Not Acceptable
122+
this.$SegmentMessage.error(this, JSON.parse(err.request.response).detail);
120123
} else if (err.request.status === 409) {
121124
// HTTP 409 Conflict
122125
this.$SegmentMessage.error(this, 'Username has been taken');

src/sfconfig.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22
api: {
3-
server: 'http://172.32.5.25:8000/api'
3+
server: 'http://172.32.1.144:8000/api'
44
},
55
markdown: {
66
gfm: true,

0 commit comments

Comments
 (0)