[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'
|
||||
|
||||
const { mapState, mapGetters, mapActions, mapMutations } = createNamespacedHelpers('chain')
|
||||
const socketUrl = 'ws://localhost:8888'
|
||||
const socketUrl = `ws://${location.hostname}:8888`
|
||||
|
||||
Vue.use(VueSocketio, io(socketUrl), store)
|
||||
|
||||
|
||||
@@ -113,12 +113,10 @@ export default {
|
||||
margin: 10px 0;
|
||||
}
|
||||
|
||||
|
||||
.loginSecword {
|
||||
align-self: stretch;
|
||||
display:flex;
|
||||
justify-content: center;
|
||||
|
||||
}
|
||||
|
||||
& /deep/ .v-btn {
|
||||
|
||||
Reference in New Issue
Block a user