From 20f49a172aae253e963cf14201901065a4a1c2fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=88=AA?= Date: Thu, 20 Nov 2025 20:36:06 +0800 Subject: [PATCH] fix :bug --- .env.development.yh | 1 + src/components/points-and-badge/points.vue | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.env.development.yh b/.env.development.yh index 37f4a114..ff0a76ed 100644 --- a/.env.development.yh +++ b/.env.development.yh @@ -8,4 +8,5 @@ VITE_APP_BASE_API_Url = 'http://25.18.122.65:7001' # VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.32.154:9604' # VITE_APP_BASE_H5_API_Url_TRAPRACTICE = 'http://25.64.32.156:9603' # VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.154:9601' +VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.32.158:9601' diff --git a/src/components/points-and-badge/points.vue b/src/components/points-and-badge/points.vue index b3ad9ec2..235d0c0c 100644 --- a/src/components/points-and-badge/points.vue +++ b/src/components/points-and-badge/points.vue @@ -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