|
@@ -361,27 +361,24 @@ const goBackPage = async (row) => {
|
|
|
onSuccess: () => {},
|
|
onSuccess: () => {},
|
|
|
});
|
|
});
|
|
|
} else if (isDesktop) {
|
|
} else if (isDesktop) {
|
|
|
|
|
+ const originPath = "/bff/neoweb#/approval_workbench";
|
|
|
|
|
+ // 连续三次encodeURIComponent
|
|
|
|
|
+ let e1 = encodeURIComponent(originPath);
|
|
|
|
|
+ let e2 = encodeURIComponent(e1);
|
|
|
|
|
+ let e3 = encodeURIComponent(e2);
|
|
|
dd.biz.util.openLink({
|
|
dd.biz.util.openLink({
|
|
|
- url: `https://crm-tencent.xiaoshouyi.com/global/sso/callback/00APEB9EEEA9B2E338B686B7ECFA8585808C.action?token=${getAccessToken()}`,
|
|
|
|
|
- onSuccess: () => {
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- dd.biz.util.openLink({
|
|
|
|
|
- url: `https://crm-tencent.xiaoshouyi.com/bff/neoweb#/approval_workbench`,
|
|
|
|
|
- });
|
|
|
|
|
- }, 3000);
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ url: `https://crm-tencent.xiaoshouyi.com/global/sso/callback/00APEB9EEEA9B2E338B686B7ECFA8585808C.action?token=${getAccessToken()}&returnUri=${e3}`,
|
|
|
|
|
+ onSuccess: () => {},
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
const newTab = window.open("", "_blank");
|
|
const newTab = window.open("", "_blank");
|
|
|
- newTab.location.href = `https://crm-tencent.xiaoshouyi.com/global/sso/callback/00APEB9EEEA9B2E338B686B7ECFA8585808C.action?token=${getAccessToken()}`;
|
|
|
|
|
-
|
|
|
|
|
- setTimeout(function () {
|
|
|
|
|
- newTab.location.href = `https://crm-tencent.xiaoshouyi.com/bff/neoweb#/approval_workbench`;
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- // loading.close();
|
|
|
|
|
- }, 500);
|
|
|
|
|
- }, 3000);
|
|
|
|
|
|
|
+ const originPath = "/bff/neoweb#/approval_workbench";
|
|
|
|
|
+ // 连续三次encodeURIComponent
|
|
|
|
|
+ let e1 = encodeURIComponent(originPath);
|
|
|
|
|
+ let e2 = encodeURIComponent(e1);
|
|
|
|
|
+ let e3 = encodeURIComponent(e2);
|
|
|
|
|
+ newTab.location.href = `https://crm-tencent.xiaoshouyi.com/global/sso/callback/00APEB9EEEA9B2E338B686B7ECFA8585808C.action?token=${getAccessToken()}&returnUri=${e3}`;
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
router.push("/login");
|
|
router.push("/login");
|