|
@@ -325,8 +325,15 @@ export default defineComponent({
|
|
})
|
|
})
|
|
|
|
|
|
const toggleFavorite = async () => {
|
|
const toggleFavorite = async () => {
|
|
|
|
+ /**
|
|
|
|
+ * 酷乐秀老师端 收藏曲目 music/sheet/favorite/id?providerType=?? 添加参数
|
|
|
|
+ * @ApiModelProperty("曲目评测来源 TENANT 机构 PLATFORM 平台")
|
|
|
|
+ * private String providerType;
|
|
|
|
+ * 表示收藏的是机构曲目,还是平台曲目,
|
|
|
|
+ */
|
|
|
|
+ const apiUrl = state.projectType === 'tenant' ? `/music/sheet/favorite/${musicDetail.value?.id}?providerType={}` : `/music/sheet/favorite/${musicDetail.value?.id}`
|
|
try {
|
|
try {
|
|
- await request.post('/music/sheet/favorite/' + musicDetail.value?.id, {
|
|
|
|
|
|
+ await request.post(apiUrl, {
|
|
prefix:
|
|
prefix:
|
|
state.platformType === 'TEACHER' ? '/api-teacher' : '/api-student'
|
|
state.platformType === 'TEACHER' ? '/api-teacher' : '/api-student'
|
|
})
|
|
})
|