@titaui/pc 1.9.54 → 1.9.55

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.
@@ -11,6 +11,8 @@ var _react = _interopRequireWildcard(require("react"));
11
11
 
12
12
  var _titaUi = require("tita-ui");
13
13
 
14
+ var _bsGlobal = require("../../utils/bs-global");
15
+
14
16
  var _localStorage = require("../../utils/local-storage");
15
17
 
16
18
  require("./index.css");
@@ -36,6 +38,7 @@ var storage = new _localStorage.localStorage();
36
38
 
37
39
  function StopTakingModel() {
38
40
  var _useState = (0, _react.useState)(function () {
41
+ if ((0, _bsGlobal.getTenantInfo)().Source == 964) return false;
39
42
  var stopTaking = storage.getItem("stopTaking");
40
43
 
41
44
  if (stopTaking !== null && stopTaking !== void 0 && stopTaking.date) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.54",
3
+ "version": "1.9.55",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -1,6 +1,7 @@
1
1
  import React, { ReactElement, useState, useCallback } from "react";
2
2
  import { Modal } from "tita-ui";
3
3
  import { getLocale } from "../../utils/getLocale";
4
+ import {getTenantInfo} from '../../utils/bs-global'
4
5
  import { localStorage } from "../../utils/local-storage";
5
6
  import "./index.scss";
6
7
 
@@ -9,6 +10,7 @@ const storage = new localStorage();
9
10
 
10
11
  function StopTakingModel(): ReactElement {
11
12
  const [visible, setVisible] = useState<any>(() => {
13
+ if(getTenantInfo().Source == 964) return false;
12
14
  const stopTaking: any = storage.getItem("stopTaking");
13
15
  if (stopTaking?.date) {
14
16
  const oldDate = new Date(stopTaking?.date).getDate();