提交 7f7722cc authored 作者: 钟是志's avatar 钟是志

泸职 一站式修改

上级 c510d2ae
......@@ -71,7 +71,8 @@ export async function giveFilePostData(datas, url) {
if ((window.CONFIG?.ALLBIN && url.indexOf('/onestop/') > -1) || url.indexOf(item.api) > -1) {
const roleGroup = getUserInfo().groupsId;
if (url.indexOf('http') > -1) {
url = url.replace('/onestop/', `/onestop/safe/${roleGroup}/`);
url = url.replace('/onestop/', `/onestop/safe/${roleGroup}/`);
url = url.replace('/onestopapi/', `/onestopapi/safe/${roleGroup}/`);
} else {
url = url.replace(url, `/safe/${roleGroup}/` + url);
url = url.replaceAll('//', '/');
......@@ -190,7 +191,8 @@ export function giveFilePostDataInfoForTrue(datas, url) {
if (url) {
const roleGroup = getUserInfo().groupsId;
if (url.indexOf('http') > -1) {
url = url.replace('/onestop/', `/onestop/safe/${roleGroup}/`);
url = url.replace('/onestop/', `/onestop/safe/${roleGroup}/`);
url = url.replace('/onestopapi/', `/onestopapi/safe/${roleGroup}/`);
} else {
url = url.replace(url, `/safe/${roleGroup}/` + url);
url = url.replaceAll('//', '/');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论