You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importVueSessionfrom'dwy-vue-session'//in main.js,mount Session's instance to Vue's prototype via Vue.use//then you can access session via every Vue's instanceVue.use(Session);//when signedin,//call instance method regenerate to generate session;this.$session.regenerate(token);//judge signin stateif(this.$session.signedin){//do something}//when signout,call method destroy to destroy the session;this.$session.destroy();