Showing
1 changed file
with
6 additions
and
6 deletions
| ... | @@ -1063,12 +1063,12 @@ export default { | ... | @@ -1063,12 +1063,12 @@ export default { |
| 1063 | document.title = '可视化流程设计器' | 1063 | document.title = '可视化流程设计器' |
| 1064 | localStorage.setItem('showConfirmation', '1'); // 打开刷新提示框 | 1064 | localStorage.setItem('showConfirmation', '1'); // 打开刷新提示框 |
| 1065 | // 监听 beforeunload 事件 | 1065 | // 监听 beforeunload 事件 |
| 1066 | - window.addEventListener('beforeunload', function (event) { | 1066 | + // window.addEventListener('beforeunload', function (event) { |
| 1067 | - if (localStorage.getItem('showConfirmation') === '1') { | 1067 | + // if (localStorage.getItem('showConfirmation') === '1') { |
| 1068 | - // 取消事件的默认行为(弹出确认对话框) | 1068 | + // // 取消事件的默认行为(弹出确认对话框) |
| 1069 | - event.preventDefault(); | 1069 | + // event.preventDefault(); |
| 1070 | - } | 1070 | + // } |
| 1071 | - }); | 1071 | + // }); |
| 1072 | // 监听 unload 事件 | 1072 | // 监听 unload 事件 |
| 1073 | window.addEventListener('unload', function () { | 1073 | window.addEventListener('unload', function () { |
| 1074 | // 设置标志位为 false,避免在刷新页面时再次显示提示框 | 1074 | // 设置标志位为 false,避免在刷新页面时再次显示提示框 | ... | ... |
-
Please register or login to post a comment