From 5f00696dfb25bc90034448ceb634ed1ef256681a Mon Sep 17 00:00:00 2001 From: qiyunfeng-create <1940665526@qq.com> Date: 星期四, 21 八月 2025 21:13:35 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/xiehe_website --- src/views/personalCenter/myCollection.vue | 54 ++++++------------------------------------------------ 1 files changed, 6 insertions(+), 48 deletions(-) diff --git a/src/views/personalCenter/myCollection.vue b/src/views/personalCenter/myCollection.vue index 365cd76..162166d 100644 --- a/src/views/personalCenter/myCollection.vue +++ b/src/views/personalCenter/myCollection.vue @@ -68,10 +68,9 @@ <script setup lang="ts"> import { reactive, ref, onMounted, inject, watch } from "vue"; import { ElMessage, ElMessageBox } from "element-plus"; -import { useBreadcrumbStore, useUserStore } from '@/store' +import { useUserStore } from "@/store"; import { useRouter } from "vue-router"; -const crumbStore = useBreadcrumbStore() -const userStore = useUserStore() +const userStore = useUserStore(); const router = useRouter(); const MG: any = inject("MG"); const config: any = inject("config"); @@ -161,51 +160,10 @@ }; // 璺宠浆涔︽湰璇︽儏 const goBookDetails = (id: number, name: string) => { - let crumbs = [ - { - name, - isCrumbs: true, - type: - currentCollect.value == "book" - ? "bookService" - : currentCollect.value == "textBooks" - ? "digitalTextbooks" - : "digitalCourses", - path: - currentCollect.value == "book" - ? "/bookService/details" - : "/digitalCoursesDetails", - }, - ]; - // 鍦ㄥ叏灞�鏁版嵁涓缃潰鍖呭睉 - crumbStore.setCrumbs({ - type: - currentCollect.value == "book" - ? "bookService" - : currentCollect.value == "textBooks" - ? "digitalTextbooks" - : "digitalCourses", - data: crumbs, - callback: (key: any) => { - router.push({ - name: - currentCollect.value == "book" - ? "bookDetails" - : currentCollect.value == "textBooks" - ? "digitalTextbooksDetails" - : "digitalCoursesDetails", - query: { - crumbsKey: key, - bookId: id, - bookName: name, - type: - currentCollect.value == "book" - ? "bookService" - : currentCollect.value == "textBooks" - ? "digitalTextbooks" - : "digitalCourses", - }, - }); + router.push({ + path: "/bookdetail", + query: { + bookId: id, }, }); }; -- Gitblit v1.9.1