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-09-11 09:28:55 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a1dfa620e4cc74cb33027cd82f7fdb1be4a72c8d
a1dfa620
1 parent
84d2aba4
fix(router): 添加x_cycle参数跳过周期检查逻辑
当URL中包含x_cycle参数时,跳过周期检查流程,直接进入页面
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
src/router.js
src/router.js
View file @
a1dfa62
...
...
@@ -69,6 +69,11 @@ const checkCycleSelection = (to) => {
return
Promise
.
resolve
(
false
);
}
// 如果URL中包含x_cycle参数,跳过周期检查
if
(
to
.
query
.
x_cycle
)
{
return
Promise
.
resolve
(
false
);
}
return
getCycleListAPI
({
form_code
:
to
.
query
.
code
})
.
then
(({
data
})
=>
{
// 如果需要周期选择且有周期列表
...
...
@@ -113,6 +118,12 @@ router.beforeEach((to, from, next) => {
return
;
}
// 如果URL中包含x_cycle参数,跳过周期检查
if
(
to
.
query
.
x_cycle
)
{
next
();
return
;
}
// 如果没有表单代码,直接通过
if
(
!
to
.
query
.
code
)
{
next
();
...
...
Please
register
or
login
to post a comment