Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
vue-flow-editor
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
2024-07-15 15:17:35 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cbe1caad4b5219c7dea8adce1a4b3e753b0ed6e1
cbe1caad
1 parent
43c88355
fix 处理iframe引用关闭可能会出现关闭弹框问题
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
doc/index.vue
doc/index.vue
View file @
cbe1caa
...
...
@@ -1063,12 +1063,12 @@ export default {
document.title = '可视化流程设计器'
localStorage.setItem('showConfirmation', '1'); // 打开刷新提示框
// 监听 beforeunload 事件
window.addEventListener('beforeunload', function (event) {
if (localStorage.getItem('showConfirmation') === '1') {
// 取消事件的默认行为(弹出确认对话框)
event.preventDefault();
}
});
//
window.addEventListener('beforeunload', function (event) {
//
if (localStorage.getItem('showConfirmation') === '1') {
//
// 取消事件的默认行为(弹出确认对话框)
//
event.preventDefault();
//
}
//
});
// 监听 unload 事件
window.addEventListener('unload', function () {
// 设置标志位为 false,避免在刷新页面时再次显示提示框
...
...
Please
register
or
login
to post a comment