From 07f1e6ae275ad6eea24966d8c22e831474cc797e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=9A=E5=AD=90?= <40852301+uiYzzi@users.noreply.github.com> Date: Sat, 8 Mar 2025 00:11:26 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=E5=8F=B3?= =?UTF-8?q?=E9=94=AE=E5=8F=AF=E5=94=A4=E5=87=BA=E7=BD=91=E9=A1=B5=E8=8F=9C?= =?UTF-8?q?=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://git.spark-app.store/spark-store-private/spark-store/issues/21 --- src/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 435ae7f..6b3b888 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -42,6 +42,8 @@ const routes = { // 初始化应用 const init = async () => { + document.addEventListener('contextmenu', event => event.preventDefault()); + // 等待服务器配置初始化完成 await initServerConfig();