Commit a0b26e3fd35f96fcb25f806932ed86a515623fe8
Merge branch 'dev-ft' into 'main'
fix:DEFECT-395 修复平台定制联系我们有数据时,在上传图片下方提示 fix:移动插件到对应的视频预览里 See merge request huang/yun-teng-iot-front!215
Showing
3 changed files
with
7 additions
and
7 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() { | ... | ... |
... | ... | @@ -63,7 +63,7 @@ |
63 | 63 | loading: false, |
64 | 64 | tip: '拼命加载中...', |
65 | 65 | }); |
66 | - const [registerForm, { getFieldsValue, setFieldsValue, validate }] = useForm({ | |
66 | + const [registerForm, { getFieldsValue, setFieldsValue, validate, clearValidate }] = useForm({ | |
67 | 67 | labelWidth: 80, |
68 | 68 | schemas, |
69 | 69 | showResetButton: false, |
... | ... | @@ -91,6 +91,7 @@ |
91 | 91 | |
92 | 92 | const qrcodePic = ref(); |
93 | 93 | const customUploadqrcodePic = async ({ file }) => { |
94 | + clearValidate('qrcode'); | |
94 | 95 | if (beforeUploadqrcodePic(file)) { |
95 | 96 | const formData = new FormData(); |
96 | 97 | formData.append('file', file); | ... | ... |