Browse Source

feat: 兼容中文分轨名称

TIANYONG 1 year ago
parent
commit
625f496ebb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/accompany/music-list.tsx

+ 1 - 1
src/views/accompany/music-list.tsx

@@ -220,7 +220,7 @@ export default defineComponent({
         parts = parts.filter((n) => !n.textContent?.toLocaleUpperCase()?.includes('COMMON'))
         for (let i = 0; i < parts.length; i++) {
           const name = getInstrumentName(parts[i].textContent || '')
-          partNames.push({ text: name ? parts[i].textContent + `(${name})` : '', value: i })
+          partNames.push({ text: name ? parts[i].textContent + `(${name})` : parts[i].textContent || '', value: i })
         }
         closeToast()
       } catch (error) {