Skip to content

Commit

Permalink
fix: 获取 playlist 成功后手动触发脏检查
Browse files Browse the repository at this point in the history
  • Loading branch information
wuhao.igno committed Aug 16, 2023
1 parent 21279bf commit 52a933d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/controller/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ angular.module('listenone').controller('NavigationController', [
$scope.is_local = data.info.id.slice(0, 2) === 'lm';

MediaService.queryPlaylist(data.info.id, 'favorite').success((res) => {
// success 函数可能在异步回调中执行,需要手动触发脏检查
$scope.is_favorite = res.result;
$scope.$digest();
});

$scope.window_type = 'list';
Expand Down

0 comments on commit 52a933d

Please sign in to comment.