|
@@ -52,11 +52,11 @@ export default defineComponent({
|
|
|
() => staffData.radio,
|
|
|
(val: string) => {
|
|
|
if (val == 'first') {
|
|
|
- showImg.value = deepClone(staffData.details.musicFirstSvg?.split(','))
|
|
|
+ showImg.value = deepClone(staffData.details.musicFirstSvg?.split(',') || [])
|
|
|
} else if (val == 'fixed') {
|
|
|
- showImg.value = deepClone(staffData.details.musicJianSvg?.split(','))
|
|
|
+ showImg.value = deepClone(staffData.details.musicJianSvg?.split(',') || [])
|
|
|
} else {
|
|
|
- showImg.value = deepClone(staffData.details.musicImg?.split(','))
|
|
|
+ showImg.value = deepClone(staffData.details.musicImg?.split(',') || [])
|
|
|
}
|
|
|
}
|
|
|
)
|
|
@@ -77,8 +77,8 @@ export default defineComponent({
|
|
|
|
|
|
const renderStaff = async () => {
|
|
|
try {
|
|
|
- staffData.iframeSrc = `${location.origin}/osmd/index.html`
|
|
|
- // staffData.iframeSrc = `${location.origin}${location.pathname}osmd/index.html`
|
|
|
+ // staffData.iframeSrc = `${location.origin}/osmd/index.html`
|
|
|
+ staffData.iframeSrc = `${location.origin}${location.pathname}osmd/index.html`
|
|
|
} catch (error) {
|
|
|
//
|
|
|
}
|
|
@@ -131,7 +131,7 @@ export default defineComponent({
|
|
|
)
|
|
|
|
|
|
staffData.details = data || {}
|
|
|
- showImg.value = staffData.details.musicImg?.split(',')
|
|
|
+ showImg.value = staffData.details.musicImg?.split(',') || []
|
|
|
|
|
|
nextTick(async () => {
|
|
|
if (data.audioFileUrl) {
|