@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.
- package/lib/service/index.js +2 -2
- package/package.json +1 -1
package/lib/service/index.js
CHANGED
|
@@ -357,8 +357,8 @@ export const delCollectionPointsInfo = async (deviceId, pointData) => {
|
|
|
357
357
|
*/
|
|
358
358
|
|
|
359
359
|
export const addCollectionPointsInfo = async (deviceId, name) => {
|
|
360
|
-
const
|
|
361
|
-
if (
|
|
360
|
+
const pointsInfo = await getCollectionPointsInfo(deviceId);
|
|
361
|
+
if (pointsInfo.data.length >= 6) {
|
|
362
362
|
ty.showToast({
|
|
363
363
|
icon: 'error',
|
|
364
364
|
title: '最多只能添加6个收藏点'
|