1.代码测试优化

sws 2024-08-26
v1.0.0
sws 2024-08-26 17:01:21 +08:00
parent 0b23280a4f
commit 6405edd185
2 changed files with 7 additions and 3 deletions

View File

@ -85,7 +85,7 @@ const article_style = ref({});
const default_data_list: ArticleList = {
id: 0,
data: {},
new_title: '测试标题',
new_title: '测试文章标题',
new_cover: [],
};
watch(

View File

@ -1,8 +1,12 @@
<template>
<div :style="style_container">
<div class="video re" :style="style">
<image-empty v-if="!video_img" v-model="video_img" error-img-style="width:60px;height:60px;"></image-empty>
<video :src="video" :poster="video_img" class="w h"></video>
<template v-if="video && !video_img">
<video :src="video" class="w h"></video>
</template>
<template v-else>
<image-empty v-model="video_img" error-img-style="width:60px;height:60px;"></image-empty>
</template>
<img src="@/assets/images/components/model-video/video.png" class="middle box-shadow-sm round" width="60" height="60" />
</div>
</div>