main/view/vue/container/message.vue

20 lines
387 B
Vue
Raw Normal View History

<template>
<div id='CONTAINER' class='message'>
<div v-for='msg in gstore.notif[1].data' :class="msg[0] == gstore.server.session.name ? 'me' : ''">
<span class='author'>{{ msg[0] }}</span>
<span class='content'>{{ msg[1] }}</span>
</div>
</div>
</template>
<script>
export default {
name: 'CONTAINER_MSG',
data(){ return { gstore: window.gstore.data }; },
}
</script>