> cross-env NODE_ENV=dev nodemon ./bin/www.js
[nodemon] 1.19.1
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node ./bin/www.js`
req.sessionId 1565780724588_0.8694839660240226
user组件的req.session是 undefined
(node:3804) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'username' of undefined
at handleUserRouter (E:\node\blog\src\router\user.js:32:18)
at getPostData.then.postData (E:\node\blog\app.js:140:22)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:3804) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3804) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.