javascript - I want to separate the login page and home page, but I don't know what's wrong
黄舟
黄舟 2017-05-19 10:40:42
0
1
523


I first determine whether there is cookie information. If not, render the login page (the app.use(/api) will not be routed at this time),

After the user clicks to log in on the login page, ajax sends a post request to api/user/login, and then sends the request again. At this time, I thought it would go through app.use(api) in app.use(), but it didn’t. ...Clicking the page multiple times keeps landing on the login page

What's the problem?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
仅有的幸福

/api and /api/xxx are two routes

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template