This commit is contained in:
杨航
2025-11-20 20:36:06 +08:00
parent 64de2d1d7c
commit 20f49a172a
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -56,10 +56,9 @@
};
const emits = defineEmits(['confirm']);
const open = (points, badges=[], complete = () => {}) => {
console.log('开启积分弹窗');
const open = (points=[], badges=[], complete = () => {}) => {
if (!Array.isArray(points) || points.length === 0) {
console.error('points 不是有效的数组或为空');
// console.error('points 不是有效的数组或为空');
// 积分为空直接调用完成
emits(
'confirm',
@@ -67,6 +66,7 @@
points,
badges
);
complete(false, points, badges)
return;
}
CloseComplete = complete