|
|
@@ -184,19 +184,10 @@ const handleView = async (item: Item) => {
|
|
|
});
|
|
|
|
|
|
if (res) {
|
|
|
- const newTab = window.open("", "_blank");
|
|
|
- // window.open(
|
|
|
- // "https://yfoa.keruioil.com/wui/index.html?ssoToken=" + res + "#/main",
|
|
|
- // "_blank",
|
|
|
- // );
|
|
|
-
|
|
|
- newTab!.location.href =
|
|
|
- "https://yfoa.keruioil.com/wui/index.html?ssoToken=" + res + "#/main";
|
|
|
-
|
|
|
- setTimeout(function () {
|
|
|
- newTab!.location.href =
|
|
|
- "https://yfoa.keruioil.com/spa/workflow/static4form/index.html?_rdm=1775701877695#/main/workflow/req?iscreate=1&workflowid=681";
|
|
|
- }, 0);
|
|
|
+ window.open(
|
|
|
+ "https://yfoa.keruioil.com/wui/index.html?ssoToken=" + res + "#/main",
|
|
|
+ "_blank",
|
|
|
+ );
|
|
|
}
|
|
|
} else {
|
|
|
router.push({ path: "/login" });
|
|
|
@@ -227,11 +218,22 @@ const handleView = async (item: Item) => {
|
|
|
|
|
|
if (item.label === "客户管理(CRM)") {
|
|
|
if (userStore.getUser.username && getAccessToken()) {
|
|
|
- window.open(
|
|
|
+ // window.open(
|
|
|
+ // "https://crm-tencent.xiaoshouyi.com/global/sso/callback/00APEB9EEEA9B2E338B686B7ECFA8585808C.action?token=" +
|
|
|
+ // getAccessToken(),
|
|
|
+ // "_blank",
|
|
|
+ // );
|
|
|
+
|
|
|
+ const newTab = window.open("", "_blank");
|
|
|
+
|
|
|
+ newTab!.location.href =
|
|
|
"https://crm-tencent.xiaoshouyi.com/global/sso/callback/00APEB9EEEA9B2E338B686B7ECFA8585808C.action?token=" +
|
|
|
- getAccessToken(),
|
|
|
- "_blank",
|
|
|
- );
|
|
|
+ getAccessToken();
|
|
|
+
|
|
|
+ setTimeout(function () {
|
|
|
+ newTab!.location.href =
|
|
|
+ "https://login.xiaoshouyi.com/auc/oauth2/auth?response_type=code&client_id=loginClientId_1000&redirect_uri=https%3A%2F%2Fcrm-tencent.xiaoshouyi.com%2Fneologin%2Fskip%2Fv2%2Fauc%2Foauth2%2Ftoken%2Finfo&access_type=offline&scope=crm#/entityGrid/customerTable__c?objectApiKey=customerTable__c";
|
|
|
+ }, 1000);
|
|
|
} else {
|
|
|
router.push({ path: "/login" });
|
|
|
}
|