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
2024-12-23 17:21:20 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7af231081f71626e758b4870a9e799b5c5f8179e
7af23108
1 parent
e2c2c2c6
未完成表单只有在手机端才生效
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/router.js
src/router.js
View file @
7af2310
...
...
@@ -53,7 +53,7 @@ router.beforeEach((to, from, next) => {
}
else
{
if
(
to
.
query
.
page_type
===
'add'
||
to
.
query
.
page_type
===
undefined
)
{
// 表单为新增状态, 检查是否有未完成的表单信息
const
existingCookie
=
Cookies
.
get
(
to
.
query
.
code
);
if
(
existingCookie
)
{
if
(
existingCookie
&&
to
.
query
.
force_back
!==
'1'
)
{
showConfirmDialog
({
title
:
'温馨提示'
,
message
:
'您还未完成的表单,是否继续?'
,
...
...
Please
register
or
login
to post a comment