refactor: 移除未使用的导入以优化代码结构
移除 `UploadVideoPopup.vue` 和 `VideoPlayer.vue` 中未使用的 `defineProps` 和 `defineEmits` 导入,以简化代码并提高可维护性。
Showing
2 changed files
with
2 additions
and
2 deletions
| ... | @@ -38,7 +38,7 @@ | ... | @@ -38,7 +38,7 @@ |
| 38 | </template> | 38 | </template> |
| 39 | 39 | ||
| 40 | <script setup> | 40 | <script setup> |
| 41 | -import { ref, defineProps, defineEmits, watch } from 'vue'; | 41 | +import { ref, watch } from 'vue'; |
| 42 | import { showToast } from 'vant'; | 42 | import { showToast } from 'vant'; |
| 43 | import VideoPlayer from '@/components/ui/VideoPlayer.vue'; | 43 | import VideoPlayer from '@/components/ui/VideoPlayer.vue'; |
| 44 | import { uploadFile, validateFile } from '@/utils/upload'; | 44 | import { uploadFile, validateFile } from '@/utils/upload'; | ... | ... |
| ... | @@ -12,7 +12,7 @@ | ... | @@ -12,7 +12,7 @@ |
| 12 | </template> | 12 | </template> |
| 13 | 13 | ||
| 14 | <script setup> | 14 | <script setup> |
| 15 | -import { ref, computed, onMounted, onBeforeUnmount, defineProps, defineEmits } from "vue"; | 15 | +import { ref, computed, onMounted, onBeforeUnmount } from "vue"; |
| 16 | import { VideoPlayer } from "@videojs-player/vue"; | 16 | import { VideoPlayer } from "@videojs-player/vue"; |
| 17 | import videojs from "video.js"; | 17 | import videojs from "video.js"; |
| 18 | import "video.js/dist/video-js.css"; | 18 | import "video.js/dist/video-js.css"; | ... | ... |
-
Please register or login to post a comment