提交 897bf3b5 authored 作者: 王鹏飞's avatar 王鹏飞

feat: 将默认图片链接更新为相对路径

上级 9cc6d9b6
......@@ -23,7 +23,6 @@ const bytesToSize = (bytes: number) => {
<div class="card-item">
<div class="card-item-top">
<!-- <div class="title">基金产品(中)(初级)</div> -->
<!-- <img src="http://iph.href.lu/265x170" /> -->
<div class="title">{{ props.data.name }}</div>
<div class="item-info">
<div class="info">文件大小:{{ bytesToSize(parseInt(props.data.size)) }}</div>
......
......@@ -13,7 +13,7 @@ const appList = ref()
const levelList = computed(() => {
return store.getMapValuesByKey('teacher_level')
})
const imgDefault = 'https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png'
const imgDefault = '/default.jpg'
const courseList = ref([])
const id = route.query.id as string
const title = route.query.title as string
......
......@@ -71,7 +71,7 @@ const handleDetail = (row: any) => {
}
})
}
const imgDefault = ref('https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png')
const imgDefault = ref('/default.jpg')
</script>
<template>
......
......@@ -73,7 +73,7 @@ const handlePrimary = () => {
<AppList v-bind="listOptions" ref="appList">
<template #table-avatar="{ row }">
<img
:src="row.avatar || 'https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png'"
:src="row.avatar || '/default.jpg'"
style="width: 50px; height: 50px; display: block; margin: 0 auto"
/>
</template>
......
......@@ -56,7 +56,7 @@ const electiveType = computed<ICourseList[]>(() => {
})
// 下拉选择tree 视频分类
let { list: selectTree }: any = useGetCategoryList()
const { list: selectTree }: any = useGetCategoryList()
const defaultProps = { children: 'children', label: 'category_name', value: 'id' }
// form
......@@ -348,7 +348,7 @@ const handleTextbook = (val: any) => {
width: 430px;
height: 270px;
background-size: cover;
background-image: url('https://iph.href.lu/430x270');
background-image: url('/center_resource/course_default.png');
margin-right: 20px;
position: relative;
.upload-btn {
......
......@@ -165,7 +165,7 @@ const statusStyle = (item: any) => {
<template v-if="props.data.teachers && props.data.teachers.length > 0">
<div v-for="item in props.data.teachers" :key="item.id">
<div class="item1">
<img class="avatar" src="https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png" />
<img class="avatar" src="/default.jpg" />
<div class="name">{{ item.name }}</div>
</div>
</div>
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论