Summary
In this chapter, we created the login page and the document.ejs
file, and learned how to set the viewport scale to display our pages on mobile devices correctly. You learned how to store and globally access data by configuring the initial state plugin and reading the initial state properties on the login and home page.
We created user permissions by configuring the access plugin and created the workflow page on which we blocked unauthorized access using the access plugin. We enabled the ProTable
row selection feature only for authorized users using the access plugin.
Finally, we configured the umi-request library to handle HTTP error responses and display feedback messages to inform users what happened.
In the next chapter, you'll learn about code style, formatting, and how to improve your code using linters and formatting tools.