Commit 26cf8a12 by 孙美琪

首页轮播图修改

parent 09b43629
......@@ -241,7 +241,7 @@ onBeforeUnmount(() => {
function getBanner() {
banner().then(res => {
// 筛选条件:showStatus为1的数据
const validData = res.data.filter(item => item.showStatus === true);
const validData = res.data.filter(item => item.showStatus === 0);
// 处理图片字段,只取第一张图片
validData.forEach(item => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment