|
@@ -137,15 +137,14 @@ export default defineComponent({
|
|
|
return;
|
|
|
}
|
|
|
// 默认进页面显示对应的曲谱
|
|
|
- const lineType = _actions.value.map(item => {
|
|
|
- if (item.value === 'first') {
|
|
|
- return 'firstTone';
|
|
|
- } else if (item.value === 'fixed') {
|
|
|
- return 'fixedTone';
|
|
|
- } else {
|
|
|
- return 'staff';
|
|
|
- }
|
|
|
- });
|
|
|
+ let lineType = 'staff';
|
|
|
+ if (data.showMusicImg === 'first') {
|
|
|
+ lineType = 'firstTone';
|
|
|
+ } else if (data.showMusicImg === 'fixed') {
|
|
|
+ lineType = 'fixedTone';
|
|
|
+ } else if (data.showMusicImg === 'staff') {
|
|
|
+ lineType = 'staff';
|
|
|
+ }
|
|
|
let src = `${location.origin}/instrument?id=${
|
|
|
data.musics[data.musicIndex]?.id
|
|
|
}&musicRenderType=${lineType}&showGuide=true`;
|