Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2025-11-06 11:01:16 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
96627d4471e70b5d3c297c5a03ab3de279a72033
96627d44
1 parent
e1ab76dd
fix: 屏蔽未完成表单弹框功能并优化代码格式
移除未完成表单弹框的相关逻辑,避免在特定场景下显示干扰用户 优化代码格式,统一缩进和换行风格
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
src/router.js
src/views/cycle-selection.vue
src/router.js
View file @
96627d4
/*
* @Date: 2022-05-26 13:57:28
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-11-06 10:
45:17
* @LastEditTime: 2025-11-06 10:
58:08
* @FilePath: /data-table/src/router.js
* @Description: 文件描述
*/
...
...
@@ -91,6 +91,7 @@ router.beforeEach((to, from, next) => {
resetDialogState
();
}
// TAG: 屏蔽未完成弹框功能
// 新增:在显示未完成表单弹框之前,对 leader 来源进行特殊处理
// 如果是新增页面或未指定类型,并且来源为 leader,则提前清理未完成表单的 Cookie,避免弹框
// 这样可以确保不会触发 showUnfinishedFormDialog 或包含“您还未完成的表单,是否继续?”的提示
...
...
src/views/cycle-selection.vue
View file @
96627d4
...
...
@@ -168,6 +168,7 @@ const confirmCycleSelection = () => {
* @param {Object} route 目标路由对象
*/
const checkUnfinishedForm = (route) => {
// TAG: 屏蔽未完成弹框功能
// 新增:在显示未完成表单弹框之前,对 leader 来源进行特殊处理
// 如果是新增页面或未指定类型,并且来源为 leader,则提前清理未完成表单的 Cookie,避免弹框
if ((route.query.page_type === 'add' || route.query.page_type === undefined) && (route.query.volunteer_source === 'leader')) {
...
...
Please
register
or
login
to post a comment