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,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() { |
@@ -63,7 +63,7 @@ | @@ -63,7 +63,7 @@ | ||
63 | loading: false, | 63 | loading: false, |
64 | tip: '拼命加载中...', | 64 | tip: '拼命加载中...', |
65 | }); | 65 | }); |
66 | - const [registerForm, { getFieldsValue, setFieldsValue, validate }] = useForm({ | 66 | + const [registerForm, { getFieldsValue, setFieldsValue, validate, clearValidate }] = useForm({ |
67 | labelWidth: 80, | 67 | labelWidth: 80, |
68 | schemas, | 68 | schemas, |
69 | showResetButton: false, | 69 | showResetButton: false, |
@@ -91,6 +91,7 @@ | @@ -91,6 +91,7 @@ | ||
91 | 91 | ||
92 | const qrcodePic = ref(); | 92 | const qrcodePic = ref(); |
93 | const customUploadqrcodePic = async ({ file }) => { | 93 | const customUploadqrcodePic = async ({ file }) => { |
94 | + clearValidate('qrcode'); | ||
94 | if (beforeUploadqrcodePic(file)) { | 95 | if (beforeUploadqrcodePic(file)) { |
95 | const formData = new FormData(); | 96 | const formData = new FormData(); |
96 | formData.append('file', file); | 97 | formData.append('file', file); |