Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivWeb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ReactWeb5
CivWeb
Commits
2ac78a5f
Commit
2ac78a5f
authored
Sep 26, 2024
by
yangsiqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 安卓手机浏览器支持
parent
d83955b1
Pipeline
#92899
passed with stages
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
notice.js
src/layouts/AppLayout/notifier/notice.js
+1
-1
render.js
src/render.js
+1
-0
No files found.
src/layouts/AppLayout/notifier/notice.js
View file @
2ac78a5f
...
@@ -523,7 +523,7 @@ class Notifier {
...
@@ -523,7 +523,7 @@ class Notifier {
}
}
}
}
speak = msg => {
speak = msg => {
if (!this.speakState) return;
if (!this.speakState
|| !window.speechSynthesis
) return;
this.speakState.text = msg;
this.speakState.text = msg;
window.speechSynthesis.cancel();
window.speechSynthesis.cancel();
window.speechSynthesis.speak(this.speakState);
window.speechSynthesis.speak(this.speakState);
...
...
src/render.js
View file @
2ac78a5f
...
@@ -247,6 +247,7 @@ export const AppInitState = () => {
...
@@ -247,6 +247,7 @@ export const AppInitState = () => {
// 语音播报全局拦截
// 语音播报全局拦截
const
initMessageVoice
=
()
=>
{
const
initMessageVoice
=
()
=>
{
if
(
!
window
.
speechSynthesis
)
return
;
const
rawSpeak
=
window
.
speechSynthesis
.
speak
;
const
rawSpeak
=
window
.
speechSynthesis
.
speak
;
window
.
speechSynthesis
.
speak
=
function
(...
args
)
{
window
.
speechSynthesis
.
speak
=
function
(...
args
)
{
if
(
if
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment