[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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user