Skip to content

Commit 8e70333

Browse files
committedMar 24, 2021
N fix
1 parent ff76229 commit 8e70333

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed
 

‎md/240-用户注册.md

+2-11
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</div>
3333

3434
<div>
35-
<!-- 留给后面章节的登录 -->
35+
<!-- 留给后面章节的用户登录 -->
3636
</div>
3737
</div>
3838

@@ -68,39 +68,30 @@
6868
alert('用户注册成功,快去登录吧!');
6969
})
7070
.catch(function (error) {
71-
7271
alert(error.message);
73-
7472
// Handling Error here...
75-
7673
// https://github.com/axios/axios#handling-errors
77-
7874
});
7975
},
8076
}
8177
}
8278
</script>
8379

8480
<style scoped>
85-
8681
#grid {
8782
display: grid;
8883
grid-template-columns: 1fr 1fr;
8984
}
90-
9185
#signup {
9286
text-align: center;
9387
}
94-
9588
.form-elem {
9689
padding: 10px;
9790
}
98-
9991
input {
10092
height: 25px;
10193
padding-left: 10px;
10294
}
103-
10495
button {
10596
height: 35px;
10697
cursor: pointer;
@@ -114,7 +105,7 @@
114105
</style>
115106
```
116107

117-
代码看起来有点多,但其实没有多少新内容;功能上就是将表单中的用户名和密码 `post``/api/user/` 接口,若创建成功则提醒用户前往登录,失败则将提示信息显示出来。
108+
代码看起来有点多,但其实**没有新知识**;功能上就是将表单中的用户名和密码 `post``/api/user/` 接口,若创建成功则提醒用户前往登录,失败则将提示信息显示出来。
118109

119110
> 如果注册失败,教程只是简单的弹出提示框,实际的博客项目应该优化为更加友好的方式。
120111

0 commit comments

Comments
 (0)