angular2 application, use js to set the cookie when logging in, then exit and delete the cookie, confirm that the cookie no longer exists, enter the previous login link in the url, and the cookie appears again, why? How to solve it
It has been changed. Angular’s cookies need to use DI injection. If you change it to Service, it will be ok
Did you write down the user ID, then adjust the interface every time you go to this page, and then write it in again?
It has been changed. Angular’s cookies need to use DI injection. If you change it to Service, it will be ok
Did you write down the user ID, then adjust the interface every time you go to this page, and then write it in again?