浏览代码

修改样式

lex 1 年之前
父节点
当前提交
bd37d66077
共有 2 个文件被更改,包括 3 次插入10 次删除
  1. 1 1
      src/tenant/music/search/index.module.less
  2. 2 9
      src/tenant/music/search/searchAlbum.tsx

+ 1 - 1
src/tenant/music/search/index.module.less

@@ -340,7 +340,7 @@ body {
   overflow: hidden;
   bottom: 0;
   padding-top: var(--header-height);
-  background: url('../../images/bg-image-search.png') no-repeat top center #fafafa;
+  background: url('../../images/bg-image-search.png') no-repeat top center #f8f8f8;
   background-size: 100% 214px;
 
 }

+ 2 - 9
src/tenant/music/search/searchAlbum.tsx

@@ -101,7 +101,7 @@ export default defineComponent({
             onLoad={FetchList}
             error={isError.value}
           >
-            {data.value && data.value.rows.length ? (
+            {data.value && data.value.rows.length && (
               <Song
                 showTitleImg
                 list={data.value.rows}
@@ -121,16 +121,9 @@ export default defineComponent({
                   })
                 }}
               />
-            ) : (
-              !loading.value && (
-                <ColResult
-                  tips="暂无曲目"
-                  classImgSize="SMALL"
-                  btnStatus={false}
-                />
-              )
             )}
           </List>
+          {!loading.value && <ColResult tips="暂无曲目" btnStatus={false} />}
         </div>
       )
     }