Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_pda_Web
Project
Project
Details
Activity
Releases
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
胡宝山
template_pda_Web
Commits
dd10b3c0
Commit
dd10b3c0
authored
Apr 10, 2024
by
Hagsn3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
4338b6bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
common.js
src/utils/common.js
+9
-5
No files found.
src/utils/common.js
View file @
dd10b3c0
...
...
@@ -185,11 +185,15 @@ export function includePermission(accessName) {
// 控制音频启用状态
export
const
isAudioAble
=
true
export
function
playAudio
(
isAudioAble
)
{
const
errorSound
=
new
Audio
(
require
(
'../assets/audio/y1840.mp3'
))
if
(
isAudioAble
)
{
errorSound
.
play
()
const
errorSound
=
new
Audio
(
require
(
'../assets/audio/y1840.mp3'
))
export
function
playAudio
(
start
)
{
if
(
!
isAudioAble
)
{
return
}
if
(
start
)
{
setTimeout
(()
=>
{
errorSound
.
play
()
},
2000
)
}
else
{
errorSound
.
pause
()
}
...
...
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