Showing
2 changed files
with
5 additions
and
6 deletions
... | ... | @@ -13,8 +13,7 @@ import { setupStore } from '/@/store'; |
13 | 13 | import { setupGlobDirectives } from '/@/directives'; |
14 | 14 | import { setupI18n } from '/@/locales/setupI18n'; |
15 | 15 | import { registerGlobComp } from '/@/components/registerGlobComp'; |
16 | -import vue3videoPlay from 'vue3-video-play'; // 引入组件 | |
17 | -import 'vue3-video-play/dist/style.css'; // 引入css | |
16 | + | |
18 | 17 | if (import.meta.env.DEV) { |
19 | 18 | import('ant-design-vue/dist/antd.less'); |
20 | 19 | } |
... | ... | @@ -47,9 +46,6 @@ async function bootstrap() { |
47 | 46 | // Mount when the route is ready |
48 | 47 | // https://next.router.vuejs.org/api/#isready |
49 | 48 | await router.isReady(); |
50 | - | |
51 | - app.use(vue3videoPlay); | |
52 | - | |
53 | 49 | app.mount('#app', true); |
54 | 50 | } |
55 | 51 | ... | ... |
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | > |
12 | 12 | <div class="video-sty"> |
13 | 13 | <div> |
14 | - <vue3VideoPlay v-bind="options" :poster="videoPoster" /> | |
14 | + <vue3videoPlay v-bind="options" :poster="videoPoster" /> | |
15 | 15 | </div> |
16 | 16 | </div> |
17 | 17 | </BasicModal> |
... | ... | @@ -20,11 +20,14 @@ |
20 | 20 | <script lang="ts"> |
21 | 21 | import { defineComponent, reactive, ref, nextTick } from 'vue'; |
22 | 22 | import { BasicModal, useModalInner } from '/@/components/Modal'; |
23 | + import vue3videoPlay from 'vue3-video-play'; // 引入组件 | |
24 | + import 'vue3-video-play/dist/style.css'; // 引入css | |
23 | 25 | |
24 | 26 | export default defineComponent({ |
25 | 27 | name: 'DialogPreviewVideo', |
26 | 28 | components: { |
27 | 29 | BasicModal, |
30 | + vue3videoPlay, | |
28 | 31 | }, |
29 | 32 | emits: ['success', 'register'], |
30 | 33 | setup() { | ... | ... |