This commit is contained in:
fanxb 2019-07-30 11:28:08 +08:00
parent 33b5d16b57
commit 46851ebe1c

View File

@ -26,6 +26,8 @@ categories:
观察登录、注册两个页面的结构可以发现真正变化的部分只有中间的表单,所以我们可以将表单外的其他部分作为一个公共布局给这些页面来复用。
<!-- more -->
创建`src/layout/LoginLayout`目录,然后在目录下建立`index.jsx`,`index.module.less`文件,如下图所示:
![创建登录模板](https://raw.githubusercontent.com/FleyX/files/master/blogImg/20190628192835.png)