fix :bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user