Przeglądaj źródła

crm单点处理

yanghao 2 dni temu
rodzic
commit
e4af52471b
1 zmienionych plików z 13 dodań i 16 usunięć
  1. 13 16
      src/views/flow/crmTodoList.vue

+ 13 - 16
src/views/flow/crmTodoList.vue

@@ -361,27 +361,24 @@ const goBackPage = async (row) => {
           onSuccess: () => {},
         });
       } 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({
-          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 {
       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 {
     router.push("/login");