@titaui/pc 1.16.95 → 1.16.96
Sign up to get free protection for your applications and to get access to all the features.
@@ -52,6 +52,7 @@ var UnchainOkrModal = function UnchainOkrModal(props, ref) {
|
|
52
52
|
});
|
53
53
|
(0, _react.useEffect)(function () {
|
54
54
|
(0, _requestApi.OkrNewTenantInitialized)().then(function (res) {
|
55
|
+
console.log(urlHost, 'urlHost');
|
55
56
|
if (res.code == 1) {
|
56
57
|
var _res$data = res.data,
|
57
58
|
surveyId = _res$data.surveyId,
|
@@ -61,7 +62,7 @@ var UnchainOkrModal = function UnchainOkrModal(props, ref) {
|
|
61
62
|
userIsFirstAccess: userIsFirstAccess,
|
62
63
|
isTry: isTry
|
63
64
|
});
|
64
|
-
var researchUrl = "https
|
65
|
+
var researchUrl = "https://".concat(urlHost, "/survey/answer/pc/#/research/answer?hideNavTop=true&surveyId=").concat(surveyId, "&isExternal=0&source=").concat(ESource.OkrInvestigate);
|
65
66
|
setOkrResearchUrl(researchUrl);
|
66
67
|
if (userIsFirstAccess && isTry && isOkr && (0, _bsGlobal.isWx)()) {
|
67
68
|
setTimeout(function () {
|
@@ -76,6 +77,7 @@ var UnchainOkrModal = function UnchainOkrModal(props, ref) {
|
|
76
77
|
setVisible(false);
|
77
78
|
};
|
78
79
|
var hanldeOnUnchain = function hanldeOnUnchain() {
|
80
|
+
console.log(okrResearchUrl);
|
79
81
|
window.open(okrResearchUrl);
|
80
82
|
setVisible(false);
|
81
83
|
};
|
@@ -97,7 +99,7 @@ var UnchainOkrModal = function UnchainOkrModal(props, ref) {
|
|
97
99
|
return /*#__PURE__*/_react["default"].createElement(_dialog["default"], {
|
98
100
|
destroyOnClose: true,
|
99
101
|
modalRender: modalRender,
|
100
|
-
visible:
|
102
|
+
visible: 1,
|
101
103
|
width: 294
|
102
104
|
});
|
103
105
|
};
|