--- some of the problems encountered when vue project to build the front end of the Light

  1. css styles set: opacity represents transparency

  2. The js object is stored in the localStorge time, direct storage is not enough, will become [object Object], all such data,

    Need to be JSON processing to storage, also need to be removed when the job json.parse be resolved, a bit like a pickle

  3. The distal sessionstorge localstorge also store data, session corresponding to memory, localstorge equivalent of a hard disk

  4. After logging in, the first time you jump to other pages from individual centers, what data do not show the page

    --- "default handling vue reusable components ---" if you can listen $ route through the watch, when routing changes occur after the refresh

    Time --- "But watch set, the findings do not realize refresh the page ----" Later axios created in which the user requests detailed information request to get the data, the internal .then after finished all operations, call this $ router.go (0);. method, the page is refreshed, really achieve the purpose,

  5. After the front-end phone is registered, when re-entering the center of the personal, life and death can not get the data, it was discovered that the back end of the phone log method, there is no corresponding token: user.pk into redis, because the front end is my personal center by token as the credential to the rear end of the request data, and the token is stored in the redis, all in redis get token, it is unlikely to get to the front end of the data

  6. Front end, that is, when the next "/" path home page, click Log, Log indeed implemented method, but from the point of view explicit, and there is no effect, using:. _This $ router.push ( " / "); allowed to return home in the other pages of the time, but at home there is no

    . --- '' by _this $ route.path == '/' judgment about whether or not the home page, the home page, I just use this $ router.go (0);. Refresh the page, then the effect on Log show out

Guess you like

Origin www.cnblogs.com/xt12321/p/11306716.html