但是每当我将faculty.js移到教员文件夹中时,我的模板就不再识别数据。静态视图元素仍然正确显示,但数据模型被记录为null。我怎么才能修好它?import Ember from 'ember';
model(){ location: config.locationType,
rootURL: config.rootURL
我有一个庞大的嵌套对象数组,我希望筛选和删除由深度嵌套键uniqueId定义的副本。通过下面的映射,我只获得键uniqueId的值。但是我需要整个对象数组m。JS
var medis = [...new Map(m.map( o => [o['drugs'][0]['ingredient'].uniqueId, o['drugs'][0]['ingredient