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-11-21 17:23:06 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
64ceb6c698c26a830139535ffcabf8e134ee3baf
64ceb6c6
1 parent
be508867
fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
src/router.js
src/router.js
View file @
64ceb6c
/*
* @Date: 2022-05-26 13:57:28
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-11-21 17:
08:22
* @LastEditTime: 2024-11-21 17:
17:16
* @FilePath: /data-table/src/router.js
* @Description: 文件描述
*/
...
...
@@ -58,7 +58,8 @@ router.beforeEach((to, from, next) => {
title
:
'温馨提示'
,
message
:
'您还未完成的表单,是否继续?'
,
confirmButtonColor
:
styleColor
.
baseColor
,
cancelButtonText
:
'删除'
cancelButtonText
:
'删除'
,
closeOnPopstate
:
false
,
})
.
then
(()
=>
{
// 通过后把数据绑定上去
next
();
...
...
@@ -67,6 +68,8 @@ router.beforeEach((to, from, next) => {
Cookies
.
remove
(
to
.
query
.
code
);
next
();
});
}
else
{
next
();
}
}
else
{
next
()
...
...
Please
register
or
login
to post a comment