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