admin/moive页面提交后,报错 不是说_id mongo会自动生成的吗?
是需要建表吗 还是怎么回事。。。。。
TypeError: Cannot read property '_id' of undefined
at app.get.Movie.fetch.res.render.title (E:\project\movie\app.js:105:25)
at Layer.handle [as handle_request] (E:\project\movie\node_modules\express\lib\router\layer.js:95:5)
at next (E:\project\movie\node_modules\express\lib\router\route.js:131:13)
at Route.dispatch (E:\project\movie\node_modules\express\lib\router\route.js:112:3)
at Layer.handle [as handle_request] (E:\project\movie\node_modules\express\lib\router\layer.js:95:5)
at E:\project\movie\node_modules\express\lib\router\index.js:277:22
at Function.process_params (E:\project\movie\node_modules\express\lib\router\index.js:330:12)
at next (E:\project\movie\node_modules\express\lib\router\index.js:271:10)
at serveStatic (E:\project\movie\node_modules\express\node_modules\serve-static\index.js:75:16)
at Layer.handle [as handle_request] (E:\project\movie\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix (E:\project\movie\node_modules\express\lib\router\index.js:312:13)
at E:\project\movie\node_modules\express\lib\router\index.js:280:7
at Function.process_params (E:\project\movie\node_modules\express\lib\router\index.js:330:12)
at next (E:\project\movie\node_modules\express\lib\router\index.js:271:10)
at urlencodedParser (E:\project\movie\node_modules\body-parser\lib\types\urlencoded.js:100:7)
at Layer.handle [as handle_request] (E:\project\movie\node_modules\express\lib\router\layer.js:95:5)