hookehuyr

fix 重新登录URL优化

/*
* @Date: 2023-10-27 11:12:24
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-07 09:28:05
* @LastEditTime: 2024-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;
}
}
});
......