@zw-team/react-lib 1.0.5-beta.4 → 1.0.5-beta.5

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.
@@ -22,6 +22,7 @@ class AccessReport_AccessReport {
22
22
  this.baseUrl = resolveBaseUrl(getServiceURL(void 0, env), mainOrigin);
23
23
  }
24
24
  report(router, page) {
25
+ if ('ark' === this.systemName) return;
25
26
  const params = {
26
27
  system: this.systemName,
27
28
  login_device: this.browserType(),
@@ -36,8 +36,8 @@ const ConfigProvider_ConfigProvider_ConfigProvider = ({ children, antdConfig, ..
36
36
  js_cookie.set('$BiEnv', contextValue.env);
37
37
  js_cookie.set('$BiSystem', contextValue.system);
38
38
  initProdEnvWarning(contextValue.env || 'production', contextValue.showProdEnvWarning);
39
- loadSvg(contextValue.system, contextValue.env || 'production', contextValue.mainOrigin);
40
- if (contextValue.needIcon) loadIcon(contextValue.env || 'production', (data)=>{
39
+ if ('ark' !== contextValue.system) loadSvg(contextValue.system, contextValue.env || 'production', contextValue.mainOrigin);
40
+ if (contextValue.needIcon && 'ark' !== contextValue.system) loadIcon(contextValue.env || 'production', (data)=>{
41
41
  updateConfig({
42
42
  iconList: data.data,
43
43
  iconInit: true
@@ -18,7 +18,7 @@ const BiNavbarTool = ({ downloadCenter = true, noticeCenter = true, systemLink =
18
18
  const [downloadStatus, setDownloadStatus] = useState(false);
19
19
  const isMounted = useRef(true);
20
20
  const WebSocketInit = useCallback(async ()=>{
21
- if (!isMounted.current) return;
21
+ if (!isMounted.current || 'ark' === system) return;
22
22
  try {
23
23
  const res = await request({
24
24
  env,
@@ -135,7 +135,7 @@ const BiNavbarTool = ({ downloadCenter = true, noticeCenter = true, systemLink =
135
135
  systemLink && /*#__PURE__*/ jsx("div", {
136
136
  className: "divider"
137
137
  }),
138
- systemLink && /*#__PURE__*/ jsx(BiSystemLink, {})
138
+ systemLink && 'ark' !== system && /*#__PURE__*/ jsx(BiSystemLink, {})
139
139
  ]
140
140
  });
141
141
  };
@@ -1,7 +1,7 @@
1
1
  const theme = {
2
2
  token: {
3
- colorPrimary: "#00bf8a",
4
- colorInfo: "#00bf8a"
3
+ colorPrimary: '#00bf8a',
4
+ colorInfo: '#00bf8a'
5
5
  },
6
6
  components: {
7
7
  Drawer: {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zw-team/react-lib",
3
- "version": "1.0.5-beta.4",
3
+ "version": "1.0.5-beta.5",
4
4
  "description": "zw-team 业务组件库,基于 React + Ant Design,提供通用组件、Hooks 与工具函数",
5
5
  "keywords": [
6
6
  "react",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zw-team/react-lib",
3
- "version": "1.0.5-beta.4",
3
+ "version": "1.0.5-beta.5",
4
4
  "description": "zw-team 业务组件库,基于 React + Ant Design,提供通用组件、Hooks 与工具函数",
5
5
  "keywords": [
6
6
  "react",