@pisell/pisellos 2.0.54 → 2.0.55

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 @@ export var formatResourceToCartItemOrigin = function formatResourceToCartItemOri
46
46
  }
47
47
  var obj = {
48
48
  relation_type: 'form',
49
- like_status: 'common',
49
+ like_status: resource.like_status || 'common',
50
50
  id: resource.id,
51
51
  main_field: resource.main_field,
52
52
  resourceType: resource.resourceType,
@@ -16,6 +16,7 @@ export interface ResourceTimeSlot {
16
16
  * 资源信息
17
17
  */
18
18
  export interface Resource {
19
+ like_status: 'common' | 'like';
19
20
  id: string | number;
20
21
  main_field: string;
21
22
  form_id: string | number;
@@ -74,7 +74,7 @@ var formatResourceToCartItemOrigin = (params) => {
74
74
  }
75
75
  const obj = {
76
76
  relation_type: "form",
77
- like_status: "common",
77
+ like_status: resource.like_status || "common",
78
78
  id: resource.id,
79
79
  main_field: resource.main_field,
80
80
  resourceType: resource.resourceType,
@@ -16,6 +16,7 @@ export interface ResourceTimeSlot {
16
16
  * 资源信息
17
17
  */
18
18
  export interface Resource {
19
+ like_status: 'common' | 'like';
19
20
  id: string | number;
20
21
  main_field: string;
21
22
  form_id: string | number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "private": false,
3
3
  "name": "@pisell/pisellos",
4
- "version": "2.0.54",
4
+ "version": "2.0.55",
5
5
  "description": "一个可扩展的前端模块化SDK框架,支持插件系统",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",