Онлайн правое меню

This commit is contained in:
iriska-gri committed 2024-01-23 10:54:51 +03:00
1 parent 3e9d7272e0
commit 5a664524d8
1 file changed
+13 -5
+13 -5
View File
@@ -4,7 +4,8 @@
variant="text" variant="text"
v-for="x in onlineuser" v-for="x in onlineuser"
:key="x" :key="x"
class="my-1"
height="50"
> >
<v-avatar <v-avatar
size="36px" size="36px"
@@ -32,6 +33,7 @@ import {checkremote} from '@/utils/universal_functions'
import InfoUserCard from './UI/infoUserCard.vue' import InfoUserCard from './UI/infoUserCard.vue'
export default { export default {
components: { InfoUserCard}, components: { InfoUserCard},
setup(){ setup(){
@@ -45,6 +47,7 @@ export default {
}} }}
const accountStore = useAccountStore() const accountStore = useAccountStore()
let onlineuser= ref([]) let onlineuser= ref([])
const connect = new WebSocket(baseWS+"ws/watcher/?token="+localStorage.access) const connect = new WebSocket(baseWS+"ws/watcher/?token="+localStorage.access)
const whatuser=(x)=> { const whatuser=(x)=> {
@@ -63,10 +66,15 @@ export default {
} }
}) })
return {
loging,
open,
return {loging,open, onlineuser, checkremote,spravURL, whatuser, accountStore} onlineuser,
checkremote,
spravURL,
whatuser,
accountStore
}
} }
} }