8 lines
161 B
JavaScript
8 lines
161 B
JavaScript
import store from '@/store'
|
|
|
|
export const socket = io.connect(window.location.href)
|
|
|
|
socket.on('init_update', data => {
|
|
store.dispatch('setAboutInfo', data)
|
|
})
|