From 0b67fd879ccd4fb6319dc016babd3bb8ea79dff0 Mon Sep 17 00:00:00 2001 From: shikeying <pxzsky@163.com> Date: 星期二, 25 四月 2023 18:47:35 +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