Browse Source

feat: 区分机构和平台收藏曲目

TIANYONG 4 months ago
parent
commit
6d201f1fb8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/music/music-detail/index.tsx

+ 1 - 1
src/views/music/music-detail/index.tsx

@@ -333,7 +333,7 @@ export default defineComponent({
        */
       let apiUrl = '', providerType = ''
       if (browser().isTeacher) {
-        providerType = state.projectType === 'tenant' ? 'TENANT' : 'PLATFORM'
+        providerType = route.query.tenantAlbumId ? 'TENANT' : 'PLATFORM'
       }
       apiUrl = `/music/sheet/favorite/${musicDetail.value?.id}`
       try {