Commit 4d24f912 by haojie

去除右键限制

parent 025756e6
......@@ -31,12 +31,12 @@ onMounted(() => {
devicePixelRatio();
// 阻止右键事件
document.addEventListener('contextmenu', contextMenuListener);
// document.addEventListener('contextmenu', contextMenuListener);
});
onBeforeUnmount(() => {
destroyContextMenuListener();
});
// onBeforeUnmount(() => {
// destroyContextMenuListener();
// });
</script>
<style lang="less"></style>
......@@ -266,12 +266,15 @@ const submitVideo = () => {
// python 回调
const mergeCallback = (params: any) => {
console.log(typeof params);
if (params.video) {
realVideo.value = params.video;
}
if (params.add_video) {
addVideo.value = params.add_video;
try {
if (params.video) {
realVideo.value = params.video;
}
if (params.add_video) {
addVideo.value = params.add_video;
}
} catch (e) {
console.log(e);
}
};
......
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