From 529f48641122af7c0aec185e4283d02e97aa0f89 Mon Sep 17 00:00:00 2001
From: shikeying <pxzsky@163.com>
Date: 星期三, 19 四月 2023 14:40:51 +0800
Subject: [PATCH] 增加 websocket

---
 src/store/modules/app.js |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/store/modules/app.js b/src/store/modules/app.js
index 3e22d1c..09447df 100644
--- a/src/store/modules/app.js
+++ b/src/store/modules/app.js
@@ -1,4 +1,5 @@
 import Cookies from 'js-cookie'
+import SpeechObject from '@/utils/Speech'
 
 const state = {
   sidebar: {
@@ -7,7 +8,10 @@
     hide: false
   },
   device: 'desktop',
-  size: Cookies.get('size') || 'medium'
+  size: Cookies.get('size') || 'medium',
+
+  // 2023-04-18锛岃闊虫挱鎶ュ璞�
+  tts: null
 }
 
 const mutations = {
@@ -37,6 +41,9 @@
   },
   SET_SIDEBAR_HIDE: (state, status) => {
     state.sidebar.hide = status
+  },
+  SET_SPEECH_TTS: (state) => {
+    state.tts = new SpeechObject();
   }
 }
 
@@ -55,6 +62,9 @@
   },
   toggleSideBarHide({ commit }, status) {
     commit('SET_SIDEBAR_HIDE', status)
+  },
+  setSpeechTts({commit}){
+    commit('SET_SPEECH_TTS')
   }
 }
 

--
Gitblit v1.9.1