@titaui/pc 1.10.82-beta.7 → 1.10.82-beta.8
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.
|
@@ -371,7 +371,8 @@ function OkrDetailHeader(_ref) {
|
|
|
371
371
|
actionComponent: /*#__PURE__*/_react["default"].createElement(_wechatBtn["default"], {
|
|
372
372
|
id: detailInfo.workId,
|
|
373
373
|
objType: 62,
|
|
374
|
-
name: detailInfo.workName
|
|
374
|
+
name: detailInfo.workName,
|
|
375
|
+
principalUser: detailInfo.principalUser
|
|
375
376
|
}),
|
|
376
377
|
content: parent ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
377
378
|
className: "okr-detail-head-parent"
|
|
@@ -47,7 +47,7 @@ var WeChatBtn = function WeChatBtn(props) {
|
|
|
47
47
|
var id = props.id,
|
|
48
48
|
objType = props.objType,
|
|
49
49
|
name = props.name,
|
|
50
|
-
|
|
50
|
+
principalUser = props.principalUser;
|
|
51
51
|
|
|
52
52
|
var _useState = (0, _react.useState)(false),
|
|
53
53
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -130,7 +130,7 @@ var WeChatBtn = function WeChatBtn(props) {
|
|
|
130
130
|
if (res.err_msg == 'updateEnterpriseChat:ok') {
|
|
131
131
|
console.log('加入成功');
|
|
132
132
|
} else {
|
|
133
|
-
if (loginUserOpenId
|
|
133
|
+
if (loginUserOpenId === principalUser.userId) {
|
|
134
134
|
setPrincipalUserModalVisible(true);
|
|
135
135
|
} else {
|
|
136
136
|
setMemberVisible(true);
|