|
@@ -76,7 +76,7 @@ export default defineComponent({
|
|
|
state.loading = true;
|
|
|
try {
|
|
|
const { data } = await api_musicSheetPage({
|
|
|
- keyword: state.keyword,
|
|
|
+ name: state.keyword,
|
|
|
page: state.page,
|
|
|
rows: state.rows
|
|
|
});
|
|
@@ -178,6 +178,7 @@ export default defineComponent({
|
|
|
<TheSearch
|
|
|
round
|
|
|
class={styles.searchInput}
|
|
|
+ placeholder='请输入曲目名称'
|
|
|
onSearch={val => {
|
|
|
if (val && val.trim()) {
|
|
|
state.isSearch = true;
|
|
@@ -202,7 +203,7 @@ export default defineComponent({
|
|
|
|
|
|
{state.isSearch ? (
|
|
|
<div class={styles.searchContainer}>
|
|
|
- <NScrollbar>
|
|
|
+ <NScrollbar class={!state.loading && state.list.length === 0 ? styles.emptyScrollBar : ''}>
|
|
|
<div class={styles.sectionContainer}>
|
|
|
{state.list.map((item: any) => (
|
|
|
<div
|
|
@@ -244,7 +245,7 @@ export default defineComponent({
|
|
|
|
|
|
{!state.loading && state.list.length === 0 && (
|
|
|
<div class={styles.empty}>
|
|
|
- <TheEmpty></TheEmpty>
|
|
|
+ <TheEmpty description="暂无曲目"></TheEmpty>
|
|
|
</div>
|
|
|
)}
|
|
|
</div>
|