@titaui/pc 1.16.95 → 1.16.97
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.
|
@@ -51,32 +51,37 @@ var UnchainOkrModal = function UnchainOkrModal(props, ref) {
|
|
|
51
51
|
};
|
|
52
52
|
});
|
|
53
53
|
(0, _react.useEffect)(function () {
|
|
54
|
-
(0,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
83
|
+
console.log(okrResearchUrl);
|
|
84
|
+
window.open(okrResearchUrl, '_blank');
|
|
80
85
|
setVisible(false);
|
|
81
86
|
};
|
|
82
87
|
var modalRender = function modalRender() {
|