原创 node-express通過jwt實現帶token驗證的登錄

文章目錄文件目錄啓動項目入口文件-server.js連接MongoDB中間件routers/api/user.js中的login方法前端接收到token之後Vue的vuex-actions在router的index.js中設置路由

原创 Vuex基礎

Vuex基礎 action 提交 const action={ add:({commit})=>{ commit('add') } } mutation 具體操作(類似方法) const muta