[Chain.vue] ws://localhost:8888 改为 ws://${location.hostname}:8888,否则访问远程节点控制台时总是报错。

This commit is contained in:
luk.lu
2019-04-18 11:45:25 +08:00
parent 2ce182a4ea
commit 1a09b56582
2 changed files with 2 additions and 4 deletions

View File

@@ -92,7 +92,7 @@ import io from 'socket.io-client'
// import axios from 'axios'
const { mapState, mapGetters, mapActions, mapMutations } = createNamespacedHelpers('chain')
const socketUrl = 'ws://localhost:8888'
const socketUrl = `ws://${location.hostname}:8888`
Vue.use(VueSocketio, io(socketUrl), store)

View File

@@ -113,13 +113,11 @@ export default {
margin: 10px 0;
}
.loginSecword {
align-self: stretch;
display:flex;
justify-content: center;
}
}
& /deep/ .v-btn {
box-shadow: 0 4px 14px #111 !important;