style(modules/web): lint code with eslint

This commit is contained in:
Xwite
2024-10-03 10:16:25 +08:00
parent 6578660b26
commit 8b7e33a32e
16 changed files with 195 additions and 196 deletions
+1 -3
View File
@@ -57,14 +57,12 @@ const props = defineProps(["books", "isSearch"]);
const emit = defineEmits(["bookClick"]);
const handleClick = (book) => emit("bookClick", book);
const getCover = (coverUrl) => {
return isLegadoUrl(coverUrl)
? API.getProxyCoverUrl(coverUrl) : coverUrl
return isLegadoUrl(coverUrl) ? API.getProxyCoverUrl(coverUrl) : coverUrl;
};
const proxyImage = (event) => {
event.target.src = API.getProxyCoverUrl(event.target.src);
};
const subJustify = computed(() =>
props.isSearch ? "space-between" : "flex-start",
);