shaogen1995 hace 1 año
padre
commit
b7e569ae1f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/MoreContent.vue

+ 1 - 1
src/views/MoreContent.vue

@@ -350,7 +350,7 @@ const pageWidth = ref(0)
 const pageNum = 4
 
 onMounted(() => {
-  pageWidth.value = window.innerWidth
+  pageWidth.value = window.innerWidth >= 500 ? 500 : window.innerWidth
 })
 
 // 当前页面的索引