Make component compile properly
This commit is contained in:
parent
682ede62b1
commit
950797c984
1 changed files with 6 additions and 12 deletions
18
src/App.vue
18
src/App.vue
|
|
@ -1,19 +1,13 @@
|
||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<WS-Entry
|
<WS-Entry v-if="state == 'ws-url'" @set-ws-url="websocket_url = $event" />
|
||||||
v-if="state == 'ws-url'"
|
<Game-Code v-else-if="state == 'game-code'" @set-game-code="game_code = $event" />
|
||||||
@set-ws-url="websocket_url = $event"
|
</div>
|
||||||
/>
|
|
||||||
<Game-Code
|
|
||||||
v-else-if="state == 'game-code'"
|
|
||||||
@set-game-code="game_code = $event"
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import GameCodeEntry from `./components/GameCode`;
|
import GameCodeEntry from './components/GameCode';
|
||||||
import WebsocketEntry from `./components/WebsocketURL`;
|
import WebsocketEntry from './components/WebsocketURL';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue