// const rongyun = { // namespaced: true, // state: { // rtcClient: null, // callClient: null, // mediaType: 2, // callSession: null, // }, // mutations: { // SET_RTC: (state, rtcClient) => { // state.rtcClient = rtcClient // }, // SET_CALL: (state, callClient) => { // state.callClient = callClient // }, // SET_CALLSESSION: (state, callSession) => { // state.callSession = callSession // }, // SET_MediaType: (state, mediaType) => { // state.mediaType = mediaType // }, // } // } const rongyunStore = defineStore( 'rongyun', { state: () => ({ rtcClient: null, callClient: null, mediaType: 2, callSession: null, }), actions: { SET_RTC (rtcClient) { this.rtcClient = rtcClient; console.log(rtcClient, 'this.rtcClient', this.rtcClient); }, SET_CALL (callClient) { this.callClient = callClient; }, SET_CALLSESSION (callSession) { this.callSession = callSession; }, SET_MediaType (mediaType) { this.mediaType = mediaType; }, } }); export default rongyunStore;