Commit e77cb442a224bbe69c35a3f272424debad6d4940

Authored by fengtao
1 parent 2a416185

fix:移动插件到对应的视频预览里

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