Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gl_help
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Max
gl_help
Commits
5a8e43cd
Commit
5a8e43cd
authored
Aug 16, 2023
by
何毅恒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化pc端首页自动加载第一条数据
parent
b5e990c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/pages/pc/index.vue
src/pages/pc/index.vue
+2
-1
No files found.
src/pages/pc/index.vue
View file @
5a8e43cd
...
...
@@ -118,13 +118,14 @@ const getInformationCategory = async () => {
let
res
=
await
post
(
"
information/getInformationCategory
"
);
if
(
res
.
code
==
0
)
{
categoryList
.
value
=
res
.
data
;
getSecondInformationCategory
(
res
.
data
[
0
].
id
,
0
);
}
};
// 获取二级分类
const
getSecondInformationCategory
=
async
(
parent_id
,
key
)
=>
{
let
res
=
await
post
(
"
information/getInformationCategory
"
,
{
parent_id
});
if
(
res
.
code
==
0
)
{
categoryList
.
value
[
key
].
secondCategoryList
=
res
.
data
;
categoryList
.
value
[
key
].
secondCategoryList
=
res
.
data
;
}
};
...
...
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