File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 1212 v-if =" store.history[person.username]" >{{ time(store.history[person.username].at(-1).time) }}</span ></div >
1313 <div class =" row justify-between" >
1414 <span v-if =" store.history[person.username]"
15- style =" color :#808080 " >{{ store.history[person.username].at(-1).content }}</span >
15+ style =" color :#808080 ; width : 60 vw " class = " ellipsis " >{{ store.history[person.username].at(-1).content }}</span >
1616 <div style =" background : red ;border-radius : 100px " class =" q-px-sm text-white q-mr-md" v-if =" store.unread[person.username]" >{{store.unread[person.username]}}</div >
1717 </div >
1818 </div >
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const useCheckStore = defineStore('check', () => {
3030 history . value [ key ] = [ ...history . value [ key ] , ...res . data . message [ key ] ] ;
3131 if ( ! unread . value [ key ] )
3232 unread . value [ key ] = 0 ;
33- if ( res . data . message [ key ] [ 0 ] . sender = ==info . value . username )
33+ if ( res . data . message [ key ] [ 0 ] . sender ! ==info . value . username )
3434 unread . value [ key ] += res . data . message [ key ] . length ;
3535 LocalStorage . set ( 'history' , history . value )
3636 if ( ! order . value ) order . value = { } ;
You can’t perform that action at this time.
0 commit comments