|
@@ -210,10 +210,11 @@ export default defineComponent({
|
|
|
const refreshMusicScore = async () => {
|
|
|
console.log('刷新谱面123')
|
|
|
isLoadingCss.value = true
|
|
|
- const container = document.getElementById('musicAndSelection'), svgDom = document.getElementById('osmdCanvasPage1'), selectionBox = document.getElementById('selectionBox');
|
|
|
- if (container && svgDom) {
|
|
|
- container?.removeChild(svgDom)
|
|
|
- container?.removeChild(selectionBox)
|
|
|
+ const container = document.getElementById('musicAndSelection'), svgDom = document.getElementById('osmdCanvasPage1'), selectionBox = document.getElementById('selectionBox'), selectionBgBox = document.getElementById('selectionBgBox');
|
|
|
+ if (container) {
|
|
|
+ svgDom && container?.removeChild(svgDom)
|
|
|
+ selectionBox && container?.removeChild(selectionBox)
|
|
|
+ selectionBgBox && container?.removeChild(selectionBgBox)
|
|
|
}
|
|
|
state.vfmeasures = [];
|
|
|
musicData.showSelection = false;
|