| | |
| | | <script setup lang="ts"> |
| | | import { reactive, ref, onMounted, inject } from "vue"; |
| | | import { getPublicImage } from "@/assets/js/middleGround/tool"; |
| | | import { useRouter } from "vue-router"; |
| | | const MG: any = inject("MG"); |
| | | const config: any = inject("config"); |
| | | const crumbStore = inject("crumbStore"); |
| | | const router = inject("router"); |
| | | const router = useRouter(); |
| | | let listData = ref([]); |
| | | let loading = ref(false); |
| | | let paginationData = reactive({ |
| | |
| | | }); |
| | | |
| | | const toDetail = (item: any) => { |
| | | const thisCrumbs = [{ name: "书籍详情", pathName: "digitalTextbooks-textbooksDetail" }]; |
| | | MG.store.dispatch("setCrumbs", { |
| | | type: "textbooks", |
| | | data: thisCrumbs, |
| | | callback: (key: string) => { |
| | | MG.router.push({ |
| | | name: "digitalTextbooks-textbooksDetail", |
| | | query: { |
| | | id: item.id, |
| | | rootCmsItemId: item.rootCmsItemId, |
| | | crumbsKey: key, |
| | | }, |
| | | }); |
| | | router.push({ |
| | | name: "digitalTextbooks-textbooksDetail", |
| | | query: { |
| | | id: item.id, |
| | | rootCmsItemId: item.rootCmsItemId, |
| | | }, |
| | | }); |
| | | }; |