diff --git a/js/controller/navigation.js b/js/controller/navigation.js index 101db77e..bf201035 100644 --- a/js/controller/navigation.js +++ b/js/controller/navigation.js @@ -195,7 +195,10 @@ angular.module('listenone').controller('NavigationController', [ $scope.is_local = data.info.id.slice(0, 2) === 'lm'; MediaService.queryPlaylist(data.info.id, 'favorite').success((res) => { - $scope.is_favorite = res.result; + // success 函数可能在异步回调中执行,需要手动触发脏检查 + $scope.$apply(() => { + $scope.is_favorite = res.result; + }); }); $scope.window_type = 'list';