Showing
3 changed files
with
9 additions
and
10 deletions
| ... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
| 7 | </router-view> | 7 | </router-view> |
| 8 | </template> | 8 | </template> |
| 9 | 9 | ||
| 10 | -<script setup> | 10 | +<script setup lang="ts"> |
| 11 | import { mainStore } from '@/store' | 11 | import { mainStore } from '@/store' |
| 12 | import { storeToRefs } from 'pinia' | 12 | import { storeToRefs } from 'pinia' |
| 13 | import { computed, ref } from 'vue'; | 13 | import { computed, ref } from 'vue'; | ... | ... |
| ... | @@ -4,6 +4,7 @@ import NoticeOverlay from '@/components/NoticeOverlay/index.vue' | ... | @@ -4,6 +4,7 @@ import NoticeOverlay from '@/components/NoticeOverlay/index.vue' |
| 4 | import DonateBook from '@/components/DonateBook/index.vue' | 4 | import DonateBook from '@/components/DonateBook/index.vue' |
| 5 | import ShortcutFixed from '@/components/ShortcutFixed/index.vue' | 5 | import ShortcutFixed from '@/components/ShortcutFixed/index.vue' |
| 6 | import BookCard from '@/components/BookCard/index.vue' | 6 | import BookCard from '@/components/BookCard/index.vue' |
| 7 | +import VideoDetail from '@/components/VideoDetail/index.vue' | ||
| 7 | 8 | ||
| 8 | export { | 9 | export { |
| 9 | MyButton, | 10 | MyButton, |
| ... | @@ -11,5 +12,6 @@ export { | ... | @@ -11,5 +12,6 @@ export { |
| 11 | NoticeOverlay, | 12 | NoticeOverlay, |
| 12 | DonateBook, | 13 | DonateBook, |
| 13 | ShortcutFixed, | 14 | ShortcutFixed, |
| 14 | - BookCard | 15 | + BookCard, |
| 16 | + VideoDetail | ||
| 15 | } | 17 | } | ... | ... |
| ... | @@ -36,16 +36,13 @@ | ... | @@ -36,16 +36,13 @@ |
| 36 | </template> | 36 | </template> |
| 37 | 37 | ||
| 38 | <script setup> | 38 | <script setup> |
| 39 | -import { mainStore } from '@/store' | ||
| 40 | -import { storeToRefs } from 'pinia' | ||
| 41 | -import icon_avatar from '@images/que-touxiang@2x.png' | ||
| 42 | - | ||
| 43 | -import VideoDetail from '@/components/VideoDetail/index.vue' | ||
| 44 | import { ref, reactive, onMounted, watch } from 'vue' | 39 | import { ref, reactive, onMounted, watch } from 'vue' |
| 45 | import { useRoute, useRouter, onBeforeRouteLeave } from 'vue-router' | 40 | import { useRoute, useRouter, onBeforeRouteLeave } from 'vue-router' |
| 46 | -import axios from '@/utils/axios'; | 41 | + |
| 47 | -import $ from 'jquery' | 42 | +import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, hasEllipsis } from '@/utils/generatePackage' |
| 48 | -import { Toast } from 'vant'; | 43 | +import { VideoDetail } from '@/utils/generateModules' |
| 44 | +import { icon_avatar } from '@/utils/generateIcons' | ||
| 45 | + | ||
| 49 | const $route = useRoute(); | 46 | const $route = useRoute(); |
| 50 | const $router = useRouter(); | 47 | const $router = useRouter(); |
| 51 | 48 | ... | ... |
-
Please register or login to post a comment