video样式

This commit is contained in:
luyuan 2020-10-15 09:14:23 +08:00
parent 7a821adee5
commit 6bf0fbc16f
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3

View File

@ -269,7 +269,7 @@
</template>
<script lang="ts">
import { computed, defineComponent, onMounted, reactive, Ref, ref } from "vue";
import { computed, defineComponent, onMounted, reactive, Ref, ref, toRaw, watch } from "vue";
import { UserOutlined, PlaySquareOutlined } from '@ant-design/icons-vue';
import NavBottom from '@/components/NavBottom.vue';
import { uploadflie } from "@/utils/vod"
@ -432,7 +432,7 @@ export default defineComponent({
* @return { void }
*/
function submitInfo (): void {
console.log('12');
console.log(toRaw(formData.value));
}
@ -463,8 +463,14 @@ export default defineComponent({
userinfo.value.video = res.video.url;
}
if(formData.value.video != ""){
uploadprogress.value = 100
}
watch(formData,()=>{
if(formData.value.video != "" && uploadprogress.value == 0){
uploadprogress.value = 100
}
})
return {
modalNode,
formData,