This commit is contained in:
zyl
2025-12-22 17:44:09 +08:00
3 changed files with 12 additions and 8 deletions

File diff suppressed because one or more lines are too long

View File

@ -102,6 +102,7 @@ const closeCallBack = (e) => {
progressVal.value = 0 progressVal.value = 0
scale.value = 1 scale.value = 1
modify.value = false modify.value = false
eventBus.emit('closeScreenShot', false)
} }
onBeforeUnmount(() => { onBeforeUnmount(() => {
closeCallBack('') closeCallBack('')

View File

@ -163,10 +163,13 @@ if (!localStorage.getItem('defaultLabelStyle')) {
} }
//移除天气设置 //移除天气设置
localStorage.removeItem('weartherSetting') localStorage.removeItem('weartherSetting')
eventBus.on('closeScreenShot', () => {
if (currentComponent.value?.__name == 'ScreenShot') {
currentComponent.value = undefined
}
})
eventBus.on('openDialog', async (sourceType: any, id: any) => { eventBus.on('openDialog', async (sourceType: any, id: any) => {
if (dynamicComponentRef.value?.name == 'ScreenShotHD') { if (dynamicComponentRef.value?.name == 'ScreenShotHD') {
console.log('关闭截图')
ElMessageBox.confirm('此操作将会打开新弹窗关闭高清截图功能, 是否继续?', '提示', { ElMessageBox.confirm('此操作将会打开新弹窗关闭高清截图功能, 是否继续?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',