|
@@ -12,7 +12,8 @@ import state from "/src/state";
|
|
|
export const getMusicSheetDetail = (sysMusicScoreId: string, type?: string, musicId?: string) => {
|
|
|
let url = type === 'open' ? `/open/musicSheet/cbsDetail/${sysMusicScoreId}?userMusicId=${musicId}` : `/musicSheet/cbsDetail/${sysMusicScoreId}`;
|
|
|
if (state.tenantAlbumId) {
|
|
|
- url += `?tenantAlbumId=${state.tenantAlbumId}`
|
|
|
+ // 从机构收藏列表进入云教练,没有专辑id,传providerType=TENANT
|
|
|
+ url += state.tenantAlbumId == '1' ? `?providerType=TENANT` : `?tenantAlbumId=${state.tenantAlbumId}`
|
|
|
}
|
|
|
if (state.systemType === 'web') {
|
|
|
url = `/musicSheet/cbsDetail/${sysMusicScoreId}?providerType=${state.providerType}`
|