Forráskód Böngészése

新增workspaceCode

sunsheng 3 hete
szülő
commit
d3bfa487d6
1 módosított fájl, 4 hozzáadás és 1 törlés
  1. 4 1
      app/components/home.tsx

+ 4 - 1
app/components/home.tsx

@@ -346,6 +346,7 @@ export function Home() {
     clientId: string,
     workspaceId: string,
     workspaceName: string,
+    workspaceCode: string,
     userName: string,
     timestamp: string,
     signature: string
@@ -437,7 +438,8 @@ export function Home() {
         const clientId = urlParams.get('client_id');
         const timestamp = urlParams.get('timestamp');
         const signature = urlParams.get('signature');
-        if (!clientId || !workspaceId || !workspaceName || !username || !timestamp || !signature) {
+        const workspaceCode = urlParams.get('workspace_code');
+        if (!clientId || !workspaceId || !workspaceName || !username || !timestamp || !signature||!workspaceCode) {
           // 处理缺失参数的情况
           Modal.error({
             title: '参数错误',
@@ -453,6 +455,7 @@ export function Home() {
           clientId: clientId,
           workspaceId: workspaceId,
           workspaceName: workspaceName,
+          workspaceCode: workspaceCode,
           userName: username,
           timestamp: timestamp,
           signature: signature