Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
$scope.dashboardXHR = httpGet('/admin/dashboard', function(data) {
$scope.dashboard = data;
// 如果启用了 ga chart
if ($scope.dashboard.ga_enable) {
$scope.getTopPages();
$scope.getDailyVisit();
$scope.getBrowser();
}
else {
$scope.nowDate = Highcharts.dateFormat('%m月%d日', new Date().getTime());
}
});
};