Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
map-demo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-08-07 10:55:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
88975973f419b291398ebdc5e2efcaaf2321a57f
88975973
1 parent
495a134d
refactor(InfoPopup): 优化弹窗显示时的音频处理逻辑
将音频处理逻辑从infoWindow监听器移至show监听器,简化代码结构
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
src/components/InfoPopup.vue
src/components/InfoPopup.vue
View file @
8897597
...
...
@@ -133,11 +133,7 @@ export default {
watch: {
show(val) {
this.show_popup = val;
},
rect(val) {
this.widow_info = val;
},
infoWindow(val) {
// 当弹窗显示时,检查是否有音频需要处理
if (val) {
if (this.info?.details.length && this.info?.details[this.isActive]['audio']) { // 实体有音频时
// 存放到pinia里面控制
...
...
@@ -148,6 +144,9 @@ export default {
}
}
},
rect(val) {
this.widow_info = val;
},
audio_status (v) {
if (v === 'pause') {
this.voice_pause()
...
...
Please
register
or
login
to post a comment