|
@@ -219,7 +219,19 @@ export default defineComponent({
|
|
|
|
|
|
//进入云练习
|
|
|
const openView = async (item: any) => {
|
|
|
- const src = `${location.origin}/orchestra-music-score/?id=${item.id}&part-index=${staffData.selectedPartIndex}`
|
|
|
+ let src = `${location.origin}/orchestra-music-score/?id=${item.id}&part-index=${staffData.selectedPartIndex}`
|
|
|
+ if (staffData.details.musicSheetType === 'SINGLE') {
|
|
|
+ // 默认进页面显示对应的曲谱
|
|
|
+ let lineType = 'staff'
|
|
|
+ if (staffData.radio === 'first') {
|
|
|
+ lineType = 'firstTone'
|
|
|
+ } else if (staffData.radio === 'fixed') {
|
|
|
+ lineType = 'fixedTone'
|
|
|
+ } else if (staffData.radio === 'staff') {
|
|
|
+ lineType = 'staff'
|
|
|
+ }
|
|
|
+ src += '&musicRenderType=' + lineType
|
|
|
+ }
|
|
|
console.log('🚀 ~ src:', src)
|
|
|
postMessage({
|
|
|
api: 'openAccompanyWebView',
|