diff --git a/Yi.Ai.Vue3/src/components/ProductPackage/index.vue b/Yi.Ai.Vue3/src/components/ProductPackage/index.vue index 41cd99d9..4e6f63ce 100644 --- a/Yi.Ai.Vue3/src/components/ProductPackage/index.vue +++ b/Yi.Ai.Vue3/src/components/ProductPackage/index.vue @@ -3,7 +3,6 @@ import type { GoodsItem } from '@/api/pay'; import { CircleCheck, Loading } from '@element-plus/icons-vue'; import { ElMessage } from 'element-plus'; import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'; -import { useRouter } from 'vue-router'; import { createOrder, getOrderStatus } from '@/api'; import { getGoodsList, GoodsCategoryType } from '@/api/pay'; import SupportModelList from '@/components/userPersonalCenter/components/SupportModelList.vue'; @@ -305,8 +304,6 @@ async function checkPaymentStatus(outTradeNo: string) { } } -const router = useRouter(); - function toggleDetails() { showDetails.value = !showDetails.value; } @@ -322,7 +319,8 @@ function onClose() { function goToActivation() { close(); - userStore.openUserCenter('activationCode'); + // 使用 window.location 进行跳转,避免 router 注入问题 + window.location.href = '/console/activation'; } diff --git a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/DailyTask.vue b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/DailyTask.vue index c459944a..c33f4549 100644 --- a/Yi.Ai.Vue3/src/components/userPersonalCenter/components/DailyTask.vue +++ b/Yi.Ai.Vue3/src/components/userPersonalCenter/components/DailyTask.vue @@ -1,8 +1,8 @@ @@ -86,15 +93,21 @@ function getProgressColor(task: DailyTaskItem): string {
完成每日任务,领取额外尊享包 Token 奖励,可累加重复
++ 完成每日任务,领取额外尊享包 Token 奖励,可累加重复 +