feat: 优化lodash导入

This commit is contained in:
539943419 committed 2024-09-27 22:07:38 +08:00
1 parent aa61489517
commit 641700d730
7 files changed
+7 -7

No files matched your search

@@ -15,7 +15,7 @@ import '@/style/xgplayer.scss'
import TextTrack from 'xgplayer/es/plugins/track'
import 'xgplayer/es/plugins/track/index.css'
import axios from 'axios'
import { uniq } from 'lodash'
import uniq from 'lodash/uniq'
import lockScreen from './playerPlugin/lockScreen/lockScreen'
import xgplayerVueApp from './src/XGPlayerVuePluginRoot.vue'
import useXGPlayerVueFrame from './playerPlugin/xgplayer-vue-frame/xgplayer-vue-frame'
@@ -7,7 +7,7 @@
<script setup lang="ts">
import { Component, toRaw } from "vue";
import Player from "xgplayer/es/player";
import { pick } from "lodash";
import pick from "lodash/pick";
const props = defineProps({
player: {
type: Player,