@yeeyoon/library 3.4.5 → 3.4.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.
@@ -20,25 +20,28 @@ const ProductListMenu = (props) => {
20
20
  const [appletSrc, setAppletSrc] = useState('');
21
21
 
22
22
  const enterDetail = (item) => {
23
+ let url = '';
23
24
  let _link = document.createElement('a');
24
25
  let link = document.body.appendChild(_link);
25
26
  link.setAttribute('target', '_blank');
26
- if (item.platforms.length > 1) {
27
+ if (item.code === 200000724) {
28
+ url = HOST_MMS;
29
+ link.setAttribute(
30
+ 'href',
31
+ `${url}?token=${ls.get('X-Auth-Token')}&tenantId=${tenantId}`
32
+ );
33
+ link.click();
34
+ } else if (item.platforms.length > 1) {
27
35
  setPlatModal(true);
28
36
  setPlatforms(item.platforms);
29
37
  } else if (item.platforms.length == 1) {
30
38
  if (item.code == 200000730 || item.code == 200000731) {
31
39
  openModal(item.platforms[0].forwardDomainName);
32
40
  } else {
33
- if (
34
- item.code == 200000729 ||
35
- item.code == 200000728 ||
36
- item.code === 200000724
37
- ) {
41
+ if (item.code == 200000729 || item.code == 200000728) {
38
42
  let url = '';
39
43
  if (item.code == 200000729) url = getCollabRedirectUrl();
40
44
  if (item.code == 200000728) url = getBpmRedirectUrl();
41
- if (item.code === 200000724) url = HOST_MMS;
42
45
  link.setAttribute(
43
46
  'href',
44
47
  `${url}?token=${ls.get('X-Auth-Token')}&tenantId=${tenantId}`
@@ -108,6 +108,6 @@ request.interceptors.response.use(async (response) => {
108
108
  return resp;
109
109
  }
110
110
  return data;
111
- });
111
+ }, { global: false });
112
112
 
113
113
  export default request;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yeeyoon/library",
3
- "version": "3.4.5",
3
+ "version": "3.4.8",
4
4
  "description": "宜云前端组件库和通用服务",
5
5
  "main": "index.js",
6
6
  "repository": {
package/src/global.css CHANGED
@@ -4,7 +4,7 @@ html, body, #root {
4
4
 
5
5
  body {
6
6
  margin: 0;
7
- /* background-color: #000 !important; */
7
+ background-color: #000 !important;
8
8
  }
9
9
 
10
10
  body * {