// 打开页面时报错
url: http://127.0.0.1;3000/login
// login 路由设置
// login.js
使用 redis 作为缓存数据库,为了练手
请教问题出在哪里,连页面也无法渲染?
PHP中文网2017-04-17 11:49:28
I found the reason. The reason is that when displaying the homepage, a middleware is used, and the parameters are set but not executed. When the other pages are used, the parameter just called is called, and an error is reported because of the parameter type
巴扎黑2017-04-17 11:49:28
Hello, I read this book again and encountered this problem. Can you tell me what has been changed? Thank you