Commit 4d24f912 by haojie

去除右键限制

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