[Chain.vue] ws://localhost:8888 改为 ws://${location.hostname}:8888,否则访问远程节点控制台时总是报错。
This commit is contained in:
@@ -92,7 +92,7 @@ import io from 'socket.io-client'
|
|||||||
// import axios from 'axios'
|
// import axios from 'axios'
|
||||||
|
|
||||||
const { mapState, mapGetters, mapActions, mapMutations } = createNamespacedHelpers('chain')
|
const { mapState, mapGetters, mapActions, mapMutations } = createNamespacedHelpers('chain')
|
||||||
const socketUrl = 'ws://localhost:8888'
|
const socketUrl = `ws://${location.hostname}:8888`
|
||||||
|
|
||||||
Vue.use(VueSocketio, io(socketUrl), store)
|
Vue.use(VueSocketio, io(socketUrl), store)
|
||||||
|
|
||||||
|
|||||||
@@ -113,13 +113,11 @@ export default {
|
|||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.loginSecword {
|
.loginSecword {
|
||||||
align-self: stretch;
|
align-self: stretch;
|
||||||
display:flex;
|
display:flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
& /deep/ .v-btn {
|
& /deep/ .v-btn {
|
||||||
box-shadow: 0 4px 14px #111 !important;
|
box-shadow: 0 4px 14px #111 !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user