@chaoswise/business 0.0.11 → 0.0.12

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.
@@ -20,7 +20,6 @@ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input ==
20
20
  import React, { useEffect, useState, useRef, useCallback } from "react";
21
21
  import PropTypes from "prop-types";
22
22
  import moment from "moment";
23
- import { fetchGet } from "@chaoswise/request";
24
23
  import "./index.less";
25
24
 
26
25
  // 疏密类型
@@ -46,7 +45,9 @@ var WatermarkCom = function WatermarkCom(_ref) {
46
45
  return _regeneratorRuntime().wrap(function _callee$(_context) {
47
46
  while (1) switch (_context.prev = _context.next) {
48
47
  case 0:
49
- return _context.abrupt("return", fetchGet("/docp/gateway/douc/api/v1/watermark/query").then(function (res) {
48
+ return _context.abrupt("return", fetch("/docp/gateway/douc/api/v1/watermark/query").then(function (res) {
49
+ return res.json();
50
+ }).then(function (res) {
50
51
  if (res && res.code === 100000) {
51
52
  return res.data;
52
53
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chaoswise/business",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "业务组件库",
5
5
  "keywords": [
6
6
  "ui",
@@ -105,5 +105,5 @@
105
105
  "access": "public"
106
106
  },
107
107
  "license": "MIT",
108
- "gitHead": "60181c1fdb22f05a1d323960462760a08c4769c0"
108
+ "gitHead": "2511fb5782570bea307b9a449b11f27c10161287"
109
109
  }