隐私政策页面

This commit is contained in:
X1627315083
2025-09-09 11:47:38 +08:00
parent d22cb66b17
commit cb7e84882d
10 changed files with 141 additions and 17 deletions

View File

@@ -37,6 +37,33 @@ document.addEventListener('keydown', function(event) {
event.preventDefault();
}
});
//全局事件
//下拉菜单全部关掉事件
// 创建全局事件系统
const dropdownEvents = {
listeners: new Set(),
closeAll() {
this.listeners.forEach(listener => {
// console.log(listener)
listener()
})
},
onClose(listener) {
this.listeners.add(listener)
},
offClose(listener) {
this.listeners.delete(listener)
}
}
document.addEventListener('click', () => {
dropdownEvents.closeAll()
})
app.config.globalProperties.$dropdownEvents = dropdownEvents
let loadingParam = {
loading: loadingGif,
attempt: 1,