@antv/dumi-theme-antv 0.6.4-beta.1 → 0.6.4-beta.2

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.
@@ -536,11 +536,6 @@ export var Header = function Header(props) {
536
536
  document.body.removeChild(script);
537
537
  }
538
538
  }
539
- return function () {
540
- if (script) {
541
- document.body.removeChild(script);
542
- }
543
- };
544
539
  }, [isInternalUser, isLinksShow]);
545
540
 
546
541
  // 当 petercat.show 为 true 且以下任一条件满足时展示 Petercat Assistant:
@@ -74,7 +74,12 @@ export var determineUserType = /*#__PURE__*/function () {
74
74
  timeout = 5000;
75
75
  _context2.prev = 4;
76
76
  _context2.next = 7;
77
- return fetchWithTimeout(url, {}, timeout);
77
+ return fetchWithTimeout(url, {
78
+ method: 'GET',
79
+ headers: {
80
+ 'Content-Type': 'application/json; charset=utf-8'
81
+ }
82
+ }, timeout);
78
83
  case 7:
79
84
  res = _context2.sent;
80
85
  if ((res === null || res === void 0 ? void 0 : res.buserviceErrorCode) === 'USER_NOT_LOGIN') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antv/dumi-theme-antv",
3
- "version": "0.6.4-beta.1",
3
+ "version": "0.6.4-beta.2",
4
4
  "description": "AntV website theme based on dumi2.",
5
5
  "keywords": [
6
6
  "dumi",