[Vue warn]: Unknown custom element: <QuestionnaireOption> - did you register the component correctly? For recursive components, make sure to provide the "name" option 上图的报错提示,说我的QuestionnaireOption组件并没有注册? 我在Questionnaire.vue中引入组件Questionn…
项目基于Vue前端+Node后台,启动两个服务,请求数据时,端口不一致造成跨域报错: (No 'Access-Control-Allow-Origin' header is present on the requested resource) 经过查官方API得到以下两种思路: 1.在Node后台中设置,允许访问 1.1.用代码控制 app.all('*', function(req, res, next) { res.header("Access-Control-Allow-Origin&qu…