feat:新建关卡页面

This commit is contained in:
李晓鸽
2022-10-13 09:18:43 +08:00
parent 4973a0ff04
commit 35ed489f85
2 changed files with 43 additions and 40 deletions

View File

@@ -416,17 +416,17 @@ export default {
const packUp = () => {
state.packup = !state.packup;
};
const getMousePosition = () => {
const getClientHeight = () => {
state.screenHeight = document.body.clientHeight;
};
onMounted(() => {
// console.log("11111", 1);
window.addEventListener("resize", getMousePosition, false);
window.addEventListener("resize", getClientHeight, false);
// judgeUrl();
});
onUnmounted(() => {
window.removeEventListener("resize", getMousePosition, false);
window.removeEventListener("resize", getClientHeight, false);
});
return {
...toRefs(state),