1.权限验证

2.数据校验

  1. protected $modelValidate = true; //是否开启Validate验证,默认是false关闭状态
  2. protected $modelSceneValidate = true; //是否开启模型场景验证,默认是false关闭状态

3.视图渲染

1.html

2.js

 $this->assignconfig('userinfo', [
  'usertoken'=>$this->auth->token,
  'userid'=>$this->auth->id,
]);

扩展知识:消息提示框