@titaui/pc 1.9.97 → 1.9.98

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.
@@ -46,7 +46,7 @@ var DEMO_FREE_MENU_CONFIG = {
46
46
  defaultExpand: false,
47
47
  domain: "",
48
48
  groupId: 0,
49
- href: "#demofree/list?selected=assigned",
49
+ href: "#demofree/list",
50
50
  iconName: "",
51
51
  id: 99998,
52
52
  labelName: null,
@@ -9,6 +9,8 @@ var _bsGlobal = require("../../utils/bs-global");
9
9
 
10
10
  var _logoWhite = _interopRequireDefault(require("./images/logo-white.png"));
11
11
 
12
+ var _constant = require("./constant");
13
+
12
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
13
15
 
14
16
  var getMenus = function getMenus() {
@@ -17,6 +19,12 @@ var getMenus = function getMenus() {
17
19
  navs.sort(function (pre, next) {
18
20
  return pre.orderId - next.orderId;
19
21
  });
22
+ var isTita = (0, _bsGlobal.getTenantInfo)().Id === 352728;
23
+
24
+ if (isTita) {
25
+ navs = navs.concat(_constant.DEMO_FREE_MENU_CONFIG);
26
+ }
27
+
20
28
  return navs;
21
29
  };
22
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@titaui/pc",
3
- "version": "1.9.97",
3
+ "version": "1.9.98",
4
4
  "nameCN": "",
5
5
  "description": "",
6
6
  "main": "src/index.js",
@@ -29,7 +29,7 @@ export const DEMO_FREE_MENU_CONFIG = {
29
29
  defaultExpand: false,
30
30
  domain: "",
31
31
  groupId: 0,
32
- href: "#demofree/list?selected=assigned",
32
+ href: "#demofree/list",
33
33
  iconName: "",
34
34
  id: 99998,
35
35
  labelName: null,
@@ -1,11 +1,16 @@
1
1
  import { getTenantInfo } from "../../utils/bs-global";
2
2
  import { INavType } from "./interface";
3
3
  import defaultLogo from "./images/logo-white.png";
4
+ import { DEMO_FREE_MENU_CONFIG } from "./constant";
4
5
 
5
6
  export const getMenus = () => {
6
7
  // @ts-ignore
7
- const navs: INavType[] = window.BSGlobal.newNavigation;
8
+ let navs: INavType[] = window.BSGlobal.newNavigation;
8
9
  navs.sort((pre, next) => pre.orderId - next.orderId);
10
+ const isTita = getTenantInfo().Id === 352728;
11
+ if (isTita) {
12
+ navs = navs.concat(DEMO_FREE_MENU_CONFIG);
13
+ }
9
14
  return navs;
10
15
  };
11
16