Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

h5 / salesgpt-project

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • salesgpt-project
  • src
  • store
  • modules
  • socket.js
  • 前端's avatar
    优化推流 · a7f37904
    前端 committed Mar 06, 2024
    a7f37904
socket.js 231 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
const state = {
  path: window.$fetchConfig.baseURL,
  socket: ''
}
const mutations = {}
const actions = {
  connect({ state }) {
    state.socket = new WebSocket(this.path)
  }
}
export default {
  state,
  mutations,
  actions
}