@ray-js/ray-ipc-utils 1.1.0-beta-4 → 1.1.0-beta-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.
@@ -357,8 +357,8 @@ export const delCollectionPointsInfo = async (deviceId, pointData) => {
357
357
  */
358
358
 
359
359
  export const addCollectionPointsInfo = async (deviceId, name) => {
360
- const collectList = await getCollectionPointsInfo(deviceId);
361
- if (collectList.length >= 6) {
360
+ const pointsInfo = await getCollectionPointsInfo(deviceId);
361
+ if (pointsInfo.data.length >= 6) {
362
362
  ty.showToast({
363
363
  icon: 'error',
364
364
  title: '最多只能添加6个收藏点'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ray-js/ray-ipc-utils",
3
- "version": "1.1.0-beta-4",
3
+ "version": "1.1.0-beta-6",
4
4
  "description": "IPC 工具库",
5
5
  "main": "lib/index",
6
6
  "files": [