mirror of
https://github.com/gedoor/legado.git
synced 2024-07-19 01:17:25 +08:00
eslint
This commit is contained in:
parent
092fd76287
commit
cab4f184ce
@ -222,11 +222,11 @@ const onResize = () => {
|
|||||||
const checkPageWidth = (readWidth) => {
|
const checkPageWidth = (readWidth) => {
|
||||||
if (store.miniInterface) return;
|
if (store.miniInterface) return;
|
||||||
if (readWidth + 2 * 68 > window.innerWidth) store.config.readWidth -= 160;
|
if (readWidth + 2 * 68 > window.innerWidth) store.config.readWidth -= 160;
|
||||||
}
|
};
|
||||||
watch(
|
watch(
|
||||||
() => store.config.readWidth,
|
() => store.config.readWidth,
|
||||||
(width) => checkPageWidth(width)
|
(width) => checkPageWidth(width)
|
||||||
)
|
);
|
||||||
// 顶部底部跳转
|
// 顶部底部跳转
|
||||||
const top = ref();
|
const top = ref();
|
||||||
const bottom = ref();
|
const bottom = ref();
|
||||||
@ -469,7 +469,7 @@ onMounted(() => {
|
|||||||
localStorage.setItem(bookUrl, JSON.stringify(book));
|
localStorage.setItem(bookUrl, JSON.stringify(book));
|
||||||
}
|
}
|
||||||
onResize();
|
onResize();
|
||||||
window.addEventListener('resize', onResize);
|
window.addEventListener("resize", onResize);
|
||||||
loadingWrapper(
|
loadingWrapper(
|
||||||
API.getChapterList(bookUrl).then(
|
API.getChapterList(bookUrl).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
@ -505,7 +505,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
window.removeEventListener("keyup", handleKeyPress);
|
window.removeEventListener("keyup", handleKeyPress);
|
||||||
window.removeEventListener('resize', onResize);
|
window.removeEventListener("resize", onResize);
|
||||||
// 兼容Safari < 14
|
// 兼容Safari < 14
|
||||||
document.removeEventListener("visibilitychange", onVisibilityChange);
|
document.removeEventListener("visibilitychange", onVisibilityChange);
|
||||||
readSettingsVisible.value = false;
|
readSettingsVisible.value = false;
|
||||||
@ -526,7 +526,7 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
.chapter-wrapper {
|
.chapter-wrapper {
|
||||||
padding: 0 4%;
|
padding: 0 4%;
|
||||||
|
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
|
||||||
:deep(.no-point) {
|
:deep(.no-point) {
|
||||||
|
Loading…
Reference in New Issue
Block a user