提交 29c633cd authored 作者: 王鹏飞's avatar 王鹏飞

bug fixes

上级 0cc3034e
......@@ -5,11 +5,11 @@ const options = ref([])
async function fetchList() {
const res = await getProductList({ page: 1, 'per-page': 1000 })
options.value = res.data.list?.map((item) => {
const picture_addreses = JSON.parse(item.picture_addreses)
const picture_addreses = JSON.parse(item.picture_addreses) || []
const [picture] = picture_addreses
return {
...item,
picture_url: picture.url,
picture_url: picture?.url,
}
})
}
......@@ -30,7 +30,7 @@ watchEffect(() => {
<template #default="{ item }">
<div class="custom-item">
<el-image :src="item.picture_url" style="width: 40px; height: 40px" />
<span>{{ item.title }}</span>
<span style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{ item.title }}</span>
<span style="color: var(--el-text-color-secondary); font-size: 13px">{{
item.live_commodity_type_full_name
}}</span>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论