Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
client
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
26cf8a12
authored
Aug 19, 2025
by
孙美琪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页轮播图修改
parent
09b43629
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/views/index.vue
+1
-1
No files found.
src/views/index.vue
View file @
26cf8a12
...
@@ -241,7 +241,7 @@ onBeforeUnmount(() => {
...
@@ -241,7 +241,7 @@ onBeforeUnmount(() => {
function
getBanner
()
{
function
getBanner
()
{
banner
().
then
(
res
=>
{
banner
().
then
(
res
=>
{
// 筛选条件:showStatus为1的数据
// 筛选条件:showStatus为1的数据
const
validData
=
res
.
data
.
filter
(
item
=>
item
.
showStatus
===
true
);
const
validData
=
res
.
data
.
filter
(
item
=>
item
.
showStatus
===
0
);
// 处理图片字段,只取第一张图片
// 处理图片字段,只取第一张图片
validData
.
forEach
(
item
=>
{
validData
.
forEach
(
item
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment