Commit e7969f38 authored by 朱国瑞's avatar 朱国瑞

禁止缩放

parent 3959f676
......@@ -30,6 +30,16 @@ export default {
console.log(vh);
document.documentElement.style.setProperty("--vh", `${vh}px`);
});
window.onload = function () {
document.addEventListener("touchstart", function (event) {
if (event.touches.length > 1) {
event.preventDefault();
}
});
document.addEventListener("gesturestart", function (event) {
event.preventDefault();
});
};
}
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment