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

泸职 一站式修改

上级 c510d2ae
...@@ -72,6 +72,7 @@ export async function giveFilePostData(datas, url) { ...@@ -72,6 +72,7 @@ export async function giveFilePostData(datas, url) {
const roleGroup = getUserInfo().groupsId; const roleGroup = getUserInfo().groupsId;
if (url.indexOf('http') > -1) { 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 { } else {
url = url.replace(url, `/safe/${roleGroup}/` + url); url = url.replace(url, `/safe/${roleGroup}/` + url);
url = url.replaceAll('//', '/'); url = url.replaceAll('//', '/');
...@@ -191,6 +192,7 @@ export function giveFilePostDataInfoForTrue(datas, url) { ...@@ -191,6 +192,7 @@ export function giveFilePostDataInfoForTrue(datas, url) {
const roleGroup = getUserInfo().groupsId; const roleGroup = getUserInfo().groupsId;
if (url.indexOf('http') > -1) { 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 { } else {
url = url.replace(url, `/safe/${roleGroup}/` + url); url = url.replace(url, `/safe/${roleGroup}/` + url);
url = url.replaceAll('//', '/'); url = url.replaceAll('//', '/');
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论