Showing
1 changed file
with
3 additions
and
2 deletions
| 1 | /* | 1 | /* |
| 2 | * @Date: 2023-10-27 11:12:24 | 2 | * @Date: 2023-10-27 11:12:24 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-12-07 09:28:05 | 4 | + * @LastEditTime: 2024-12-04 09:42:18 |
| 5 | * @FilePath: /vue-flow-editor/doc/axios.js | 5 | * @FilePath: /vue-flow-editor/doc/axios.js |
| 6 | * @Description: 文件描述 | 6 | * @Description: 文件描述 |
| 7 | */ | 7 | */ |
| ... | @@ -70,7 +70,8 @@ axios.interceptors.response.use( | ... | @@ -70,7 +70,8 @@ axios.interceptors.response.use( |
| 70 | // 拼接跳转地址,因为要返回到当前页面传入参数 | 70 | // 拼接跳转地址,因为要返回到当前页面传入参数 |
| 71 | let url_params = parseQueryString(location.href); | 71 | let url_params = parseQueryString(location.href); |
| 72 | let str = `/admin/custom_flow/?form_id=${url_params.form_id}`; | 72 | let str = `/admin/custom_flow/?form_id=${url_params.form_id}`; |
| 73 | - window.location.href = location.origin + '/admin/' + window.location.search + `&refer_url=${encodeURIComponent(str)}`; | 73 | + let refer_url = window.location.search ? `?${window.location.search}` + `&refer_url=${encodeURIComponent(str)}` : `?refer_url=${encodeURIComponent(str)}`; |
| 74 | + window.location.href = location.origin + '/admin/' + refer_url; | ||
| 74 | } | 75 | } |
| 75 | } | 76 | } |
| 76 | }); | 77 | }); | ... | ... |
-
Please register or login to post a comment