This commit is contained in:
kunfei
2023-07-25 21:35:32 +08:00
parent 29a5fe1406
commit 3d5fc133ec
12 changed files with 59 additions and 38 deletions
+11 -7
View File
@@ -225,7 +225,7 @@ const checkPageWidth = (readWidth) => {
};
watch(
() => store.config.readWidth,
(width) => checkPageWidth(width)
(width) => checkPageWidth(width),
);
// 顶部底部跳转
const top = ref();
@@ -285,8 +285,8 @@ const getContent = (index, reloadChapter = true, chapterPos = 0) => {
chapterData.value.push({ index, content, title });
store.setShowContent(true);
throw err;
}
)
},
),
);
};
@@ -498,8 +498,8 @@ onMounted(() => {
(err) => {
ElMessage({ message: "获取书籍目录失败", type: "error" });
throw err;
}
)
},
),
);
});
@@ -624,7 +624,9 @@ onUnmounted(() => {
.day {
:deep(.popup) {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
box-shadow:
0 2px 4px rgba(0, 0, 0, 0.12),
0 0 6px rgba(0, 0, 0, 0.04);
}
:deep(.tool-icon) {
@@ -645,7 +647,9 @@ onUnmounted(() => {
.night {
:deep(.popup) {
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.48), 0 0 6px rgba(0, 0, 0, 0.16);
box-shadow:
0 2px 4px rgba(0, 0, 0, 0.48),
0 0 6px rgba(0, 0, 0, 0.16);
}
:deep(.tool-icon) {
+5 -5
View File
@@ -29,7 +29,7 @@
readingRecent.name,
readingRecent.author,
readingRecent.chapterIndex,
readingRecent.chapterPos
readingRecent.chapterPos,
)
"
:class="{ 'no-point': readingRecent.url == '' }"
@@ -100,7 +100,7 @@ const readingRecent = ref({
const shelfWrapper = ref(null);
const { showLoading, closeLoading, loadingWrapper } = useLoading(
shelfWrapper,
"正在获取书籍信息"
"正在获取书籍信息",
);
const books = ref([]);
@@ -144,7 +144,7 @@ const searchBook = () => {
if (books.value.length == 0) {
ElMessage.info("搜索结果为空");
}
}
},
);
};
@@ -195,7 +195,7 @@ onMounted(() => {
store
.saveBookProgress()
//确保各种网络情况下同步请求先完成
.finally(fetchBookShelfData)
.finally(fetchBookShelfData),
);
});
const fetchBookShelfData = () => {
@@ -209,7 +209,7 @@ const fetchBookShelfData = () => {
var x = a["durChapterTime"] || 0;
var y = b["durChapterTime"] || 0;
return y - x;
})
}),
);
} else {
ElMessage.error(response.data.errorMsg);