dev-production
This commit is contained in:
parent
d82a339c23
commit
4fb80154da
@ -37,6 +37,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Vue from 'vue'
|
||||
import Card from './components/Card.vue'
|
||||
import Lobby from './components/Lobby.vue'
|
||||
|
||||
@ -70,10 +71,12 @@ export default {
|
||||
sockets: {
|
||||
connect() {
|
||||
this.isConnected = true;
|
||||
if (Vue.config.devtools) {
|
||||
setTimeout(function(){
|
||||
this.username = (1+Math.random() * 100 % 100).toFixed(2).toString();
|
||||
this.setUsername();
|
||||
}.bind(this), 1000)
|
||||
}
|
||||
},
|
||||
disconnect() {
|
||||
this.isConnected = false;
|
||||
|
@ -5,7 +5,7 @@ Vue.config.productionTip = false
|
||||
import VueSocketIO from 'vue-socket.io'
|
||||
Vue.use(new VueSocketIO({
|
||||
debug: true,
|
||||
connection: 'http://localhost:5001',
|
||||
connection: Vue.config.devtools?'http://localhost:5001':'http://51.15.199.193:5001',
|
||||
}))
|
||||
|
||||
new Vue({
|
||||
|
Loading…
Reference in New Issue
Block a user