@titaui/pc 1.16.95 → 1.16.97

Sign up to get free protection for your applications and to get access to all the features.
@@ -51,32 +51,37 @@ var UnchainOkrModal = function UnchainOkrModal(props, ref) {
51
51
  };
52
52
  });
53
53
  (0, _react.useEffect)(function () {
54
- (0, _requestApi.OkrNewTenantInitialized)().then(function (res) {
55
- if (res.code == 1) {
56
- var _res$data = res.data,
57
- surveyId = _res$data.surveyId,
58
- userIsFirstAccess = _res$data.userIsFirstAccess,
59
- userIsFirstAccessDate = _res$data.userIsFirstAccessDate;
60
- console.table({
61
- userIsFirstAccess: userIsFirstAccess,
62
- isTry: isTry
63
- });
64
- var researchUrl = "https:".concat(urlHost, "/survey/answer/pc/#/research/answer?hideNavTop=true&surveyId=").concat(surveyId, "&isExternal=0&source=").concat(ESource.OkrInvestigate);
65
- setOkrResearchUrl(researchUrl);
66
- if (userIsFirstAccess && isTry && isOkr && (0, _bsGlobal.isWx)()) {
67
- setTimeout(function () {
68
- setVisible(true);
69
- }, 30 * 1000);
54
+ if (isTry && isOkr && (0, _bsGlobal.isWx)()) {
55
+ (0, _requestApi.OkrNewTenantInitialized)().then(function (res) {
56
+ console.log(urlHost, 'urlHost');
57
+ if (res.code == 1) {
58
+ var _res$data = res.data,
59
+ surveyId = _res$data.surveyId,
60
+ userIsFirstAccess = _res$data.userIsFirstAccess,
61
+ userIsFirstAccessDate = _res$data.userIsFirstAccessDate;
62
+ console.table({
63
+ userIsFirstAccess: userIsFirstAccess,
64
+ isTry: isTry
65
+ });
66
+ var researchUrl = "https://".concat(urlHost, "/survey/answer/pc/#/research/answer?hideNavTop=true&surveyId=").concat(surveyId, "&isExternal=0&source=").concat(ESource.OkrInvestigate);
67
+ console.log(researchUrl, 'researchUrl');
68
+ setOkrResearchUrl(researchUrl);
69
+ if (userIsFirstAccess) {
70
+ setTimeout(function () {
71
+ setVisible(true);
72
+ }, 30 * 1000);
73
+ }
70
74
  }
71
- }
72
- });
75
+ });
76
+ }
73
77
  }, []);
74
78
  var onClose = function onClose(e) {
75
79
  e.stopPropagation();
76
80
  setVisible(false);
77
81
  };
78
82
  var hanldeOnUnchain = function hanldeOnUnchain() {
79
- window.open(okrResearchUrl);
83
+ console.log(okrResearchUrl);
84
+ window.open(okrResearchUrl, '_blank');
80
85
  setVisible(false);
81
86
  };
82
87
  var modalRender = function modalRender() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.16.95",
3
+ "version": "1.16.97",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",