Update: 在线版阻止浏览器默认右键菜单

This commit is contained in:
王立帮
2024-12-12 20:06:22 +08:00
parent 1b575d235f
commit 8712bde922
2 changed files with 2 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ class App extends Component {
constructor(element) {
super();
const $content = $(HTMLTemplate.get('html/app.html').render());
$content.on('contextmenu', (e) => e.preventDefault());
this.setContent($content);
this.mountOn($(element));
this.#nav_ = new Nav();