这就是我所拥有的
<div quick-list>
<br quick-link icon='download-alt' href='{{ getDownloadLink(assignment) }}' text="getMessage('assignmentListStudent.attachment.action.download')">
</div>
有关的功能如下
$scope.getDownloadLink = function(assignment) {
if (!assignment || !assignment.userAttachment || !assignment.userAttachment[0] ) {
return '';
}
return assignment.userAttachment[0].path.replace("equella/items", "equella/force-download/items");
};
我不确定这里有什么问题,但是当我点击下载链接时,我看到该页面导航到主页,因为它应该下载现有文件。 这就是我在chrome中看到的。
<li class="quick-link ng-scope" quick-link="" icon="download-alt" href="/community/proxy/equella/force-download/items/71c1f5d5-8a1f-4e85-84d6-7560a9e01b63/1/hanks.tomha.24066.PNG" text="getMessage('assignmentListStudent.attachment.action.download')"><a href="/community/proxy/equella/force-download/items/71c1f5d5-8a1f-4e85-84d6-7560a9e01b63/1/hanks.tomha.24066.PNG" class="ng-binding kb-mode"><i class="icon-download-alt"></i>Download</a></li>
Reality Student Central(5-15)更新titleInSequence
有什么我做错了吗?我应该改变什么吗?任何帮助将不胜感激。