Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenqikuai
fns_front_2
Commits
6d842cf1
Commit
6d842cf1
authored
Oct 19, 2021
by
xhx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息排序
parent
2ef4f9e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
index.vue
src/views/withMenu/Home/index.vue
+1
-0
msg.vue
src/views/withMenu/Mine/msg.vue
+1
-0
No files found.
src/views/withMenu/Home/index.vue
View file @
6d842cf1
...
...
@@ -159,6 +159,7 @@ export default defineComponent({
const
ret
=
await
queryNotifyList
({
notify_type
:
"1"
});
if
(
ret
.
code
===
200
)
{
const
list
=
ret
.
data
.
items
;
list
.
sort
((
a
,
b
)
=>
b
.
created_at
-
a
.
created_at
)
this
.
notifyList
=
list
;
}
},
...
...
src/views/withMenu/Mine/msg.vue
View file @
6d842cf1
...
...
@@ -22,6 +22,7 @@ export default defineComponent({
const
notifyList
=
()
=>
{
getNotifyList
(
type
).
then
(
res
=>
{
list
.
value
=
res
.
data
.
items
list
.
value
.
sort
((
a
:
{
created_at
:
number
},
b
:
{
created_at
:
number
})
=>
b
.
created_at
-
a
.
created_at
)
})
}
notifyList
()
...
...
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