use cookie for login verification, what if cookie is still valid after the window is closed? the nuxt project cannot get session, so it is done with cookie. The problem is how to disable cookie if you want to close the current page?
use cookie for login verification, what if cookie is still valid after the window is closed? the nuxt project cannot get session, so it is done with cookie. The problem is how to disable cookie if you want to close the current page?
manually clear before each visit?
Preface: at present, there is no good way to monitor browser pages to close, forward and backward, and refresh is also a way to close and open the current page, so the idea is wrong. Since nuxt
is used for ssr development, the focus of authentication should be placed on the server, which is more secure. Let me briefly talk about the train of thought
.
token
to the front end, cookie
or session (ps.. Why cookie can be used session cannot be used. It should be that some browsers session cannot be used. You can make a compatible version here)
Previous: How to manually control the maximum value of elementui counter (el-input-number)
Next: Es query problem
for the first time it s all wrong anyway. I followed nuxt.js s official tutorial-- ...
after I install it using the documentation s npm installation method, I introduce a date selector as in the case, but the time is in English elementUI how to change this ...
when you use a nuxt.js development project, when the page is switched, the front-end rendering will wait for the asyncdata to finish executing the page before loading. I hope the page can be loaded first, and then rendered, otherwise it will feel stutte...
the default route is app.use (nuxt.render); the display effect is 127.0.0.1virtual 3000 but I want 127.0.0.1:3000 admin how should I change it? app.use ( admin ,nuxt.render) will report the file under _ nuxt if it is used in this way. how...
suppose the pages directory of nuxt project has index.vue , home.vue , admin.vue pages. visit localhost:3000 , and Network in the console will load admin together. Is there any way not to load it? Thank you. Thank you ....
error occurs when page refresh is introduced, and the whole project cannot be refreshed if introduced globally solution ...
[root@VM_11_154_centos ffn]-sharp npm run build > ffn@1.1.0 build usr local src ffn > nuxt build nuxt:build Building... +0ms nuxt:build App root: usr local src ffn +0ms nuxt:build Generating usr local src ffn .nuxt files... +0ms nuxt:b...
nuxt project, the package source installed by cnpm is used for development, and the package source installed by npm is used on the server when is launched. It is found that the components are missing after rendering. When WTF tab is switched, it will ...
At which step was converted to the Array type. How to stop it? ...
I share two search options bars on all pages, but I want to save my last search record. How should I cache it? ...
using the nuxt framework, there are two pages An and B A page jumps to b page and transmits product information to B page via url The B page can get the information and copy it to the goodsList in data, but the page cannot render the page according ...
request the backend address in nuxt, for example, I want to send post data to the server (the server out of the interface is a separate project) in the local development environment, I want to send it to localhost:5000 (the project of nuxt is localhos...
how to add text to the right side of the icon to show the geolocation name of the current central coordinates on the mapbox map. has added the picture. The code is as follows: how to add the text on the right let img = new Image(); img.s...
what s the difference between "server-side rendering application deployment " and "static deployment " in nuxt? doesn t mean the same thing? ...
topic description finally, to develop a demo, using nuxt, there is a requirement to store the token value obtained after login in the header information of the http and put it on the Authorization field. sources of topics and their own ideas deter...
var replaceStr = - ; var str = a.value; _this.$set(a, newyasi , str.replace(new RegExp(replaceStr, gm ), , )); -sharp-sharp a.value~...
if the id of two arrays is equal, I will change the activeName field in the first array to true,. I use this to determine whether he is added to the collection or not. If true is added, false is not added. I added the fields that the background did n...
Common component: there is a method to call the interface in bar.vue . methods: {wishSign () {}} Public template: cn.vue bar.vue import VMbar from ~ components base bar ; is called globally. Interface: datail.vue requirements: I think how to...
index.vue page initialization calls jsonp error document is not defined export default { middleware: auth , data() { return { bidName: } }, created:function(){ }, async asyncData(callback){ jsonp( xxxxx ,nul...
introduce @ gauseen nuxt-proxy module into nuxt.js to solve interface cross-domain restrictions, but page access error nuxt.config.js module.exports = { ... modules: [ @gauseen nuxt-proxy , ], proxyTable:...