|
@@ -246,6 +246,7 @@ export default defineComponent({
|
|
|
/** 获取曲谱列表 */
|
|
|
const getMusicList = async () => {
|
|
|
data.loading = true;
|
|
|
+
|
|
|
try {
|
|
|
const res = await api_musicSheetPage({
|
|
|
...musicForms,
|
|
@@ -365,7 +366,7 @@ export default defineComponent({
|
|
|
// 解析xml,获取分轨信息
|
|
|
const analyzeXml = async () => {
|
|
|
const details = data.musics[data.musicIndex];
|
|
|
- if (details.musicalInstruments?.length > 1) {
|
|
|
+ if (details?.musicalInstruments?.length > 1) {
|
|
|
if (details.xmlFileUrl) {
|
|
|
const res = await fetch(details.xmlFileUrl).then(response =>
|
|
|
response.text()
|
|
@@ -570,8 +571,10 @@ export default defineComponent({
|
|
|
});
|
|
|
}}
|
|
|
onSearch={val => {
|
|
|
- musicForms.keyword = val;
|
|
|
- handleReset();
|
|
|
+ if (!data.loading) {
|
|
|
+ musicForms.keyword = val;
|
|
|
+ handleReset();
|
|
|
+ }
|
|
|
}}>
|
|
|
{{
|
|
|
left: () =>
|