|
|
@@ -298,14 +298,14 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
|
|
|
/**
|
|
|
* 项目详情框
|
|
|
*/
|
|
|
- app.controller('ProjectDetailCtrl', ['$scope', 'Project', 'toaster', '$modalInstance', 'BaseService', 'id', '$modal',
|
|
|
- function($scope, Project, toaster, $modalInstance, BaseService, id, $modal) {
|
|
|
+ app.controller('ProjectDetailCtrl', ['$scope', 'Project', 'toaster', '$modalInstance', 'BaseService', 'id', '$modal', '$sce',
|
|
|
+ function($scope, Project, toaster, $modalInstance, BaseService, id, $modal, $sce) {
|
|
|
|
|
|
var loadData = function() {
|
|
|
// 获取项目详情
|
|
|
Project.getDetailById({id :id}, {}, function(data) {
|
|
|
$scope.project = data;
|
|
|
- $scope.project.introduction = htmlEncode($scope.project.introduction);
|
|
|
+ $scope.code = $sce.trustAsHtml( $scope.project.introduction);
|
|
|
}, function() {
|
|
|
toaster.pop('error', '详情加载失败');
|
|
|
});
|