web书架: 判断同步的阅读宽度是否超出当前设备

This commit is contained in:
Xwite
2023-05-15 22:51:01 +08:00
parent ed803f0c94
commit de9d9c3562
13 changed files with 37 additions and 37 deletions
@@ -2,14 +2,6 @@ import API from "@api";
import { useBookStore } from "@/store";
import "@/assets/bookshelf.css";
/**
* pc移动端判断
*/
const bookStore = useBookStore();
bookStore.setMiniInterface(window.innerWidth < 750);
window.onresize = () => {
bookStore.setMiniInterface(window.innerWidth < 750);
};
/**
* 加载配置
*/