|
@@ -11,7 +11,7 @@ import audiosInstance from '/src/helpers/multiple-audio'
|
|
|
import { formatXML, onlyVisible, getCustomInfo } from '/src/pages/detail/helpers'
|
|
|
import { MusicSheelDetail, ShaeetStatusType } from '../index.d'
|
|
|
import { browser, getRequestHostname } from '/src/helpers/utils'
|
|
|
-import formatId from '../fingering/format-id'
|
|
|
+import formatId, { getSubjectIdCode } from '../fingering/format-id'
|
|
|
import { evaluatStopPlay } from '../buttons/evaluating'
|
|
|
|
|
|
const search = useOriginSearch()
|
|
@@ -145,6 +145,7 @@ export const useDetail = (id: number | string): [Ref<ShaeetStatusType>, Ref<Musi
|
|
|
useMp3s(res.data)
|
|
|
data.value = {
|
|
|
...res.data,
|
|
|
+ code: Array.isArray(res?.data?.background) && res.data.background.length ? getSubjectIdCode(res.data.background[0].musicSubject) : ''
|
|
|
}
|
|
|
if (data.value.notation == 0) {
|
|
|
SettingState.sett.type = 'staff'
|