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-12-04 09:55:50 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5fd261e89e40106fbb34bbcccc1199aa70ec4e86
5fd261e8
1 parent
0aa23bc8
fix 重新登录URL优化
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
doc/axios.js
doc/axios.js
View file @
5fd261e
/*
* @Date: 2023-10-27 11:12:24
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 202
3-12-07 09:28:05
* @LastEditTime: 202
4-12-04 09:42:18
* @FilePath: /vue-flow-editor/doc/axios.js
* @Description: 文件描述
*/
...
...
@@ -70,7 +70,8 @@ axios.interceptors.response.use(
// 拼接跳转地址,因为要返回到当前页面传入参数
let
url_params
=
parseQueryString
(
location
.
href
);
let
str
=
`/admin/custom_flow/?form_id=
${
url_params
.
form_id
}
`
;
window
.
location
.
href
=
location
.
origin
+
'/admin/'
+
window
.
location
.
search
+
`&refer_url=
${
encodeURIComponent
(
str
)}
`
;
let
refer_url
=
window
.
location
.
search
?
`?
${
window
.
location
.
search
}
`
+
`&refer_url=
${
encodeURIComponent
(
str
)}
`
:
`?refer_url=
${
encodeURIComponent
(
str
)}
`
;
window
.
location
.
href
=
location
.
origin
+
'/admin/'
+
refer_url
;
}
}
});
...
...
Please
register
or
login
to post a comment