Working room & client refactor
This commit is contained in:
23
client/src/components/Invite.vue
Normal file
23
client/src/components/Invite.vue
Normal file
@@ -0,0 +1,23 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1 class="subtitle">{{roomCode}}</h1>
|
||||
<qrcode :value="roomCode" :options="{ width: 200 }"/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import qrcode from '@chenfengyuan/vue-qrcode'
|
||||
|
||||
export default {
|
||||
name: 'Invite',
|
||||
components: {
|
||||
qrcode
|
||||
},
|
||||
props: {
|
||||
roomCode: {
|
||||
type: String,
|
||||
default: 'abc'
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Reference in New Issue
Block a user