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