1.当登陆成功 显示用户名且去掉登陆和注册按钮
2.data里声明 后 就在登陆的方法里调用啦
下面说一下登陆的方法。
1.登陆的按钮代码在第一张图片里
2.登陆的弹出框
3.方法
ps:另一种组件传值的接收(下面的第二张图片)
是 admin 用户 就显示 用户管理栏目
不是这个用户 就隐藏这个栏目