liushengqiang hai 1 ano
pai
achega
d28ecd499a
Modificáronse 2 ficheiros con 10 adicións e 8 borrados
  1. 2 2
      src/views/xiaoku-music/index.module.less
  2. 8 6
      src/views/xiaoku-music/index.tsx

+ 2 - 2
src/views/xiaoku-music/index.module.less

@@ -95,7 +95,7 @@
     .wrapList {
         width: 512px;
         min-width: 294Px;
-        min-height: 300Px;
+        min-height: 100%;
         background: #fff;
         border-radius: 16Px;
     }
@@ -104,7 +104,7 @@
         display: flex;
         align-items: center;
         justify-content: center;
-        min-height: 300Px;
+        height: 50vh;
     }
 }
 

+ 8 - 6
src/views/xiaoku-music/index.tsx

@@ -357,12 +357,14 @@ export default defineComponent({
             </div>
           </div>
         </div>
-        <PlayItem
-          show={data.showPlayer}
-          playState={data.playState}
-          item={activeItem.value}
-          onChange={value => handleChangeAudio(value)}
-        />
+        {data.list.length !== 0 && (
+          <PlayItem
+            show={data.showPlayer}
+            playState={data.playState}
+            item={activeItem.value}
+            onChange={value => handleChangeAudio(value)}
+          />
+        )}
       </div>
     );
   }