@titaui/pc 1.15.5 → 1.15.6

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.
@@ -159,7 +159,8 @@ var NavTop = function NavTop() {
159
159
 
160
160
  var ua = navigator.userAgent.toLowerCase(); // const showWxInvite = getTenantInfo().mainCorpId && ua.indexOf("micromessenger") !== -1;
161
161
 
162
- var showWxInvite = (0, _bsGlobal.getTenantInfo)().Source === 860 && ua.indexOf('micromessenger') !== -1 && isTry;
162
+ var canShowInvite = (0, _bsGlobal.getTenantInfo)().mainCorpId || Role.isSuperManager;
163
+ var showWxInvite = (0, _bsGlobal.getTenantInfo)().Source === 860 && ua.indexOf('micromessenger') !== -1 && isTry && canShowInvite;
163
164
  var openWxInvite = (0, _react.useCallback)(function () {
164
165
  if (Role.isSuperManager) {
165
166
  if (window.WeixinJSBridge !== undefined) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.15.5",
3
+ "version": "1.15.6",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "lib/index.js",