web书架: 判断同步的阅读宽度是否超出当前设备
This commit is contained in:
@@ -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);
|
||||
};
|
||||
/**
|
||||
* 加载配置
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user