From d25ca6dc4ac4cbc06d1444881282335c66e3115c Mon Sep 17 00:00:00 2001 From: Gsh <15170702455@163.com> Date: Fri, 2 Jan 2026 22:47:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=89=8D=E7=AB=AF=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=9E=B6=E6=9E=84=E9=87=8D=E6=9E=84=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/ProductPackage/index.vue | 6 +- .../components/DailyTask.vue | 42 ++- .../components/PremiumService.vue | 4 +- .../components/UsageStatistics.vue | 14 - .../components/UserManagement.vue | 1 - .../src/layouts/LayoutDefault/index.vue | 2 +- .../layouts/components/ChatAside/index.vue | 5 +- .../Header/components/AnnouncementBtn.vue | 200 ++++++++---- .../components/Header/components/Avatar.vue | 305 ++---------------- .../src/layouts/components/Header/index.vue | 152 ++------- Yi.Ai.Vue3/src/pages/chat/index.vue | 4 +- .../pages/chat/layouts/chatDefaul/index.vue | 2 +- .../pages/chat/layouts/chatWithId/index.vue | 2 +- Yi.Ai.Vue3/src/pages/console/index.vue | 2 +- .../src/routers/modules/staticRouter.ts | 2 +- Yi.Ai.Vue3/src/styles/var.scss | 8 +- Yi.Ai.Vue3/src/utils/product-package.ts | 15 + Yi.Ai.Vue3/types/components.d.ts | 2 - 18 files changed, 227 insertions(+), 541 deletions(-) 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 奖励,可累加重复 +