@lark-apaas/client-toolkit 1.2.51-alpha.1 → 1.2.51-alpha.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,13 +16,16 @@ const REPORT_DOMAIN = {
16
16
  ONLINE: 'tns.feishu.cn'
17
17
  };
18
18
  const openReport = ()=>{
19
+ const appId = getAppId();
20
+ if (!appId) return;
19
21
  const params = JSON.stringify({
20
22
  scene: 'miaoda_app_report',
21
- entity_id: getAppId() ?? '',
23
+ entity_id: appId,
22
24
  entity_type: 'miaoda_app',
23
25
  extra: ''
24
26
  });
25
- const url = `https://${REPORT_DOMAIN[getEnv()]}/cust/lark_report/?type=common&params=${encodeURIComponent(params)}&lang=zh-CN`;
27
+ const domain = REPORT_DOMAIN[getEnv()] ?? REPORT_DOMAIN.ONLINE;
28
+ const url = `https://${domain}/cust/lark_report/?type=common&params=${encodeURIComponent(params)}&lang=zh-CN`;
26
29
  window.open(url, '_blank', 'noopener,noreferrer');
27
30
  };
28
31
  const Component = ()=>{
@@ -157,7 +160,7 @@ const Component = ()=>{
157
160
  className: "shrink-0 w-[14px] h-[14px]"
158
161
  }),
159
162
  /*#__PURE__*/ jsx("p", {
160
- className: "shrink-0 m-0! text-[#646A73] text-sm underline",
163
+ className: "shrink-0 m-0! text-[#646A73] text-sm underline underline-offset-2",
161
164
  children: t('safety.report')
162
165
  })
163
166
  ]
@@ -291,7 +294,7 @@ const Component = ()=>{
291
294
  className: "shrink-0 w-[12px] h-[12px]"
292
295
  }),
293
296
  /*#__PURE__*/ jsx("p", {
294
- className: "shrink-0 m-0! text-[#a6a6a6] underline",
297
+ className: "shrink-0 m-0! text-[#a6a6a6] underline underline-offset-2",
295
298
  children: t('safety.report')
296
299
  })
297
300
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/client-toolkit",
3
- "version": "1.2.51-alpha.1",
3
+ "version": "1.2.51-alpha.11",
4
4
  "types": "./lib/index.d.ts",
5
5
  "main": "./lib/index.js",
6
6
  "files": [