When you add a page parameter to a route, you need a parameter pgae with the same name in the corresponding function, so you change the parameter name in the route, and the function cannot accept that parameter, so an error will be reported. You probably want different codes for passing the page and not passing the page. You can set pageg=None to determine whether the page is given or not.
Do I need to write two methods, similar
When you add a page parameter to a route, you need a parameter pgae with the same name in the corresponding function, so you change the parameter name in the route, and the function cannot accept that parameter, so an error will be reported.
You probably want different codes for passing the page and not passing the page. You can set pageg=None to determine whether the page is given or not.
This should be handled in two methods
teach_list()
teach_detail()