cnode 出错了?不登录不能看帖子??
ReferenceError: /home/www/nodeclub/views/topic/index.html:129
current_user is not defined
at eval (eval at <anonymous> (/home/www/nodeclub/node_modules/ejs/lib/ejs.js:236:14), <anonymous>:29:946)
at Object.eval (eval at <anonymous> (/home/www/nodeclub/node_modules/ejs/lib/ejs.js:236:14), <anonymous>:31:2939)
at Object.<anonymous> (/home/www/nodeclub/node_modules/ejs/lib/ejs.js:249:15)
at ServerResponse.res._render (/home/www/nodeclub/node_modules/express/lib/view.js:425:21)
at ServerResponse.res.render (/home/www/nodeclub/node_modules/express/lib/view.js:318:17)
at render (/home/www/nodeclub/node_modules/express/lib/view.js:187:16)
at renderPartial (/home/www/nodeclub/node_modules/express/lib/view.js:207:16)
at Object.options.partial (/home/www/nodeclub/node_modules/express/lib/view.js:412:12)
at eval (eval at <anonymous> (/home/www/nodeclub/node_modules/ejs/lib/ejs.js:236:14), <anonymous>:29:6384)
at Object.eval (eval at <anonymous> (/home/www/nodeclub/node_modules/ejs/lib/ejs.js:236:14), <anonymous>:39:13)
1 回复
你自己做一下简单的判断就可以搞定了的。