uni-app 全局websocket 链接 简易
websocketStore.jsimport Vue from 'vue'import Vuex from 'vuex'Vue.use(Vuex)export default new Vuex.Store({ state: { socketTask: null, eventlist: [] }, mutations: { WEBSOCKET_INIT(state, ...
原创
2019-12-23 10:38:34 ·
6632 阅读 ·
8 评论