From c7bc3eb18e1fda4254ca0195e2133d2ed978de11 Mon Sep 17 00:00:00 2001
From: china <527956374@qq.com>
Date: 星期四, 11 五月 2023 17:48:48 +0800
Subject: [PATCH] 样式调整

---
 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