Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Madara
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
Madara
Commits
21f4c56c
Commit
21f4c56c
authored
Oct 17, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息排序
parent
0bc25050
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
index.vue
src/renderer/components/msssage/index.vue
+12
-4
No files found.
src/renderer/components/msssage/index.vue
View file @
21f4c56c
...
@@ -649,10 +649,10 @@ export default {
...
@@ -649,10 +649,10 @@ export default {
}
}
});
});
}
}
item
.
top
=
false
;
item
.
top
=
0
;
this
.
TOPSESSION
.
forEach
(
x
=>
{
this
.
TOPSESSION
.
forEach
(
x
=>
{
if
(
item
.
id
==
x
)
{
if
(
item
.
id
==
x
)
{
item
.
top
=
true
;
item
.
top
=
1
;
return
false
;
return
false
;
}
}
});
});
...
@@ -698,8 +698,16 @@ export default {
...
@@ -698,8 +698,16 @@ export default {
this
.
newMsgList
=
unreadList
;
this
.
newMsgList
=
unreadList
;
this
.
sessionlistHis
=
sessionlistHis
;
this
.
sessionlistHis
=
sessionlistHis
;
sessionlist
.
sort
((
a
,
b
)
=>
b
.
top
-
a
.
top
)
let
topList
=
[],
return
sessionlist
;
otherList
=
[];
sessionlist
.
map
(
x
=>
{
if
(
x
.
top
)
{
topList
.
push
(
x
)
}
else
{
otherList
.
push
(
x
)
}
})
return
[...
topList
,
...
otherList
]
}
}
// netState(){
// netState(){
// return this.$store.state.isNetError
// return this.$store.state.isNetError
...
...
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